core-admin/linux/aux-tools/startup-misc.sh

16 lines
488 B
Bash
Raw Normal View History

#!/bin/sh
# Misc dom0 startup setup
2013-03-14 15:06:19 +01:00
/usr/lib/qubes/fix-dir-perms.sh
DOM0_MAXMEM=$(/usr/sbin/xl list 0 | tail -1 | awk '{ print $3 }')
xenstore-write /local/domain/0/memory/static-max $[ $DOM0_MAXMEM * 1024 ]
xl sched-credit -d 0 -w 2000
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
# Hide mounted devices from qubes-block list (at first udev run, only / is mounted)
udevadm trigger --action=change --subsystem-match=block