From c6cd630acf526eb1ec152da8e0a044994dbd2a30 Mon Sep 17 00:00:00 2001 From: Joanna Rutkowska Date: Tue, 27 Jul 2010 12:51:54 +0200 Subject: [PATCH] appvm/init.d/qubes_core: make /home avilable for DispVM template --- appvm/qubes_core | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/appvm/qubes_core b/appvm/qubes_core index 2b6a1596..eea88b8d 100755 --- a/appvm/qubes_core +++ b/appvm/qubes_core @@ -27,6 +27,7 @@ start() exit 1 fi if xenstore-read qubes_save_request 2>/dev/null ; then + ln -sf /home_volatile /home possibly_run_save_script touch /etc/this_is_dvm dmesg -c >/dev/null @@ -71,22 +72,11 @@ start() touch /rw/config/rc.local rm -fr /home.orig touch /var/lib/qubes/first_boot_completed - fi - if ! [ -L /home ] ; then - mv /home /home.orig - ln -s /rw/home /home - fi - if ! [ -L /usr/local ] ; then mv /usr/local /usr/local.orig ln -s /rw/usrlocal /usr/local + cp -a /usr/local.orig /rw/usrlocal fi -#make it last, we want all above to work without /rw mounted - if ! [ -d /rw/usrlocal ] ; then - cp -a /usr/local.orig /rw/usrlocal - fi - else - ln -sf /home_volatile /home fi [ -x /rw/config/rc.local ] && /rw/config/rc.local