dom0: create lockfile for libxl and set dom0 name in xenstore

Create lockfile to set it proper permissions. Without it the first use
(qvm-start netvm) will create it with root:root and 600.
Without xend, no one sets dom0 name...
This commit is contained in:
Marek Marczykowski 2011-06-10 12:02:32 +02:00
parent 3571a34010
commit 891653a413

View File

@ -37,6 +37,11 @@ start()
chmod 660 /proc/xen/privcmd
chgrp qubes /dev/xen/evtchn
chmod 660 /dev/xen/evtchn
touch /var/run/qubes/xl-lock
chgrp qubes /var/run/qubes/xl-lock
chmod 660 /var/run/qubes/xl-lock
xenstore-write /local/domain/0/name Domain-0
xl sched-credit -d 0 -w 512
cp /var/lib/qubes/qubes.xml /var/lib/qubes/backup/qubes-$(date +%F-%T).xml