From 1b59b440e4fdbd1a4d04b9931c79d8c46fc8022a 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 5873aae..113c522 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