Fixed the logic for /home and /usr/local linking/copying for AppVMs
We assume that the template's root fs already has the following symlinks: /home -> /rw/home /usr/local -> /rw/usrlocal
This commit is contained in:
parent
28e1f962e5
commit
8ec8567727
@ -67,18 +67,17 @@ start()
|
|||||||
if ! [ -d /rw/home ] ; then
|
if ! [ -d /rw/home ] ; then
|
||||||
echo
|
echo
|
||||||
echo "--> Virgin boot of the VM: Linking /home to /rw/home"
|
echo "--> Virgin boot of the VM: Linking /home to /rw/home"
|
||||||
mv /home /home.orig
|
|
||||||
mkdir -p /rw/config
|
|
||||||
mkdir -p /rw/home
|
|
||||||
ln -s /rw/home/ /home
|
|
||||||
cp -a /home.orig/user /home
|
|
||||||
touch /rw/config/rc.local
|
|
||||||
rm -fr /home.orig
|
|
||||||
touch /var/lib/qubes/first_boot_completed
|
|
||||||
|
|
||||||
mv /usr/local /usr/local.orig
|
mkdir -p /rw/config
|
||||||
ln -s /rw/usrlocal /usr/local
|
touch /rw/config/rc.local
|
||||||
cp -a /usr/local.orig /rw/usrlocal
|
|
||||||
|
mkdir -p /rw/home
|
||||||
|
cp -a /home.orig/user /home
|
||||||
|
|
||||||
|
mkdir -p /rw/usrlocal
|
||||||
|
cp -a /usr/local.orig/* /usr/local
|
||||||
|
|
||||||
|
touch /var/lib/qubes/first_boot_completed
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user