From 5efee35654b2091527acaabeed68362acf135363 Mon Sep 17 00:00:00 2001 From: Tomasz Sterna Date: Wed, 23 Mar 2011 18:45:35 +0100 Subject: [PATCH] Fix ownership and rights when creating DVM during boot. --- dom0/init.d/qubes_setupdvm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dom0/init.d/qubes_setupdvm b/dom0/init.d/qubes_setupdvm index 7ed65cf2..7fdbf0f7 100755 --- a/dom0/init.d/qubes_setupdvm +++ b/dom0/init.d/qubes_setupdvm @@ -32,6 +32,9 @@ start() if [ $create_neeed = 1 ] ; then echo Creating the default DVM. This may take up to 2 minutes... qvm-create-default-dvm --default-template --default-script + DVMDIR="/var/lib/qubes/appvms/`qvm-get-default-template`-dvm" + /bin/chown -R root.qubes "$DVMDIR" + /bin/chmod -R ug=rwX,o=rX "$DVMDIR" return fi if [ -f /var/lib/qubes/dvmdata/dont_use_shm ] ; then