From 56d44d5bab7f1367add5102e51a4c021d44318fe Mon Sep 17 00:00:00 2001 From: Rafal Wojtczuk Date: Thu, 20 May 2010 16:52:47 +0200 Subject: [PATCH] Make /usr/local a symlink to /rw/usrlocal. --- appvm/qubes_core | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/appvm/qubes_core b/appvm/qubes_core index 5873aaee..113c5220 100755 --- a/appvm/qubes_core +++ b/appvm/qubes_core @@ -59,6 +59,14 @@ start() echo "nameserver $gateway" > /etc/resolv.conf echo "nameserver $secondary_dns" >> /etc/resolv.conf fi + if ! [ -L /usr/local ] ; then + mv /usr/local /usr/local.orig + ln -s /rw/usrlocal /usr/local + fi + if ! [ -d /rw/usrlocal ] ; then + cp -a /usr/local.orig /rw/usrlocal + fi + fi