Fix ownership and rights when creating DVM during boot.

This commit is contained in:
Tomasz Sterna 2011-03-23 18:45:35 +01:00
parent e2d9673713
commit 5efee35654

View File

@ -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