startup-misc.sh 535 B

12345678910111213141516
  1. #!/bin/sh
  2. # Misc dom0 startup setup
  3. /usr/lib/qubes/fix-dir-perms.sh
  4. xenstore-write /local/domain/0/name dom0
  5. DOM0_MAXMEM=`/usr/sbin/xl info | grep total_memory | awk '{ print $3 }'`
  6. xenstore-write /local/domain/0/memory/static-max $[ $DOM0_MAXMEM * 1024 ]
  7. xl sched-credit -d 0 -w 512
  8. cp /var/lib/qubes/qubes.xml /var/lib/qubes/backup/qubes-$(date +%F-%T).xml
  9. /usr/lib/qubes/cleanup-dispvms
  10. # Hide mounted devices from qubes-block list (at first udev run, only / is mounted)
  11. udevadm trigger --action=change --subsystem-match=block