2013-01-27 00:04:40 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Misc dom0 startup setup
|
|
|
|
|
2013-03-14 15:06:19 +01:00
|
|
|
/usr/lib/qubes/fix-dir-perms.sh
|
2013-01-27 00:04:40 +01:00
|
|
|
xenstore-write /local/domain/0/name dom0
|
2013-06-14 05:28:08 +02:00
|
|
|
xenstore-write domid 0
|
2013-01-27 00:04:40 +01:00
|
|
|
DOM0_MAXMEM=`/usr/sbin/xl info | grep total_memory | awk '{ print $3 }'`
|
|
|
|
xenstore-write /local/domain/0/memory/static-max $[ $DOM0_MAXMEM * 1024 ]
|
|
|
|
|
|
|
|
xl sched-credit -d 0 -w 512
|
|
|
|
cp /var/lib/qubes/qubes.xml /var/lib/qubes/backup/qubes-$(date +%F-%T).xml
|
|
|
|
|
2013-03-14 15:06:19 +01:00
|
|
|
/usr/lib/qubes/cleanup-dispvms
|
2013-01-27 00:04:40 +01:00
|
|
|
|
|
|
|
# Hide mounted devices from qubes-block list (at first udev run, only / is mounted)
|
2014-01-13 05:00:01 +01:00
|
|
|
udevadm trigger --action=change --subsystem-match=block
|