dvm: correct PATH and permissions

This commit is contained in:
Rafal Wojtczuk 2010-06-30 15:23:44 +02:00 committed by Joanna Rutkowska
parent c71a1694d2
commit 2e927cce68
3 changed files with 4 additions and 1 deletions

View File

@ -31,6 +31,8 @@ start()
chmod 660 /var/run/xenstored/*
xm sched-credit -d 0 -w 65535
printf "\x00\x00\x00\x00" > /var/run/qubes/dispVM_seq
chown root:qubes /var/run/qubes/dispVM_seq
chmod 660 /var/run/qubes/dispVM_seq
xm mem-set 0 700
cp /var/lib/qubes/qubes.xml /var/lib/qubes/backup/qubes-$(date +%F-%T).xml
touch /var/lock/subsys/qubes_core

View File

@ -45,7 +45,7 @@ function do_send()
xm block-detach $1 /dev/xvdg || exit 1
xm block-attach $2 file:/$FILE /dev/xvdh w || exit 1
}
export PATH=$PATH:/sbin:/usr/sbin
if [ $# -lt 1 ] ; then
echo args missing ?
exit 1

View File

@ -3,6 +3,7 @@ if ! [ $# = 2 ] ; then
echo usage: $0 domainname savefile_to_be_created
exit 1
fi
export PATH=$PATH:/sbin:/usr/sbin
VMDIR=/var/lib/qubes/appvms/$1
if ! [ -d $VMDIR ] ; then
echo $VMDIR does not exist ?