startup-misc.sh 495 B

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