startup-misc.sh 558 B

1234567891011121314151617
  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. xenstore-write domid 0
  6. DOM0_MAXMEM=`/usr/sbin/xl info | grep total_memory | awk '{ print $3 }'`
  7. xenstore-write /local/domain/0/memory/static-max $[ $DOM0_MAXMEM * 1024 ]
  8. xl sched-credit -d 0 -w 512
  9. cp /var/lib/qubes/qubes.xml /var/lib/qubes/backup/qubes-$(date +%F-%T).xml
  10. /usr/lib/qubes/cleanup-dispvms
  11. # Hide mounted devices from qubes-block list (at first udev run, only / is mounted)
  12. udevadm trigger --action=change --subsystem-match=block