From 891653a413e61d7903fa5be3ab025c8825b8ddaa Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Fri, 10 Jun 2011 12:02:32 +0200 Subject: [PATCH] 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... --- dom0/init.d/qubes_core | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dom0/init.d/qubes_core b/dom0/init.d/qubes_core index 6d4866fd..cd3af4dd 100755 --- a/dom0/init.d/qubes_core +++ b/dom0/init.d/qubes_core @@ -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