[PC-BSD Commits] r5701 - pcbsd/trunk/mfsroot-overlay/etc

svn at pcbsd.org svn at pcbsd.org
Mon Dec 28 13:26:03 PST 2009


Author: kris
Date: 2009-12-28 13:26:03 -0800 (Mon, 28 Dec 2009)
New Revision: 5701

Modified:
   pcbsd/trunk/mfsroot-overlay/etc/SetupLive.sh
Log:

Cleanup live mode, ensure we get a writable /usr/PCBSD/pc-sysinstall for debugging and make it available in the right
place



Modified: pcbsd/trunk/mfsroot-overlay/etc/SetupLive.sh
===================================================================
--- pcbsd/trunk/mfsroot-overlay/etc/SetupLive.sh	2009-12-28 21:10:44 UTC (rev 5700)
+++ pcbsd/trunk/mfsroot-overlay/etc/SetupLive.sh	2009-12-28 21:26:03 UTC (rev 5701)
@@ -34,11 +34,28 @@
 fi
 
 /sbin/mdmfs -S -s 2M -O space md5 /usr
+# Make /usr symlinks
 cd /mntuzip/usr
 for i in `ls`
 do
-  ln -s /mntuzip/usr/$i /usr/$i
+  if [ "${i}" != "PCBSD" ]
+  then
+    ln -s /mntuzip/usr/$i /usr/$i
+  fi
 done
 
+# Now make /PCBSD sym-links
+mkdir /usr/PCBSD
+cd /mntuzip/usr/PCBSD
+ln -s /root/pc-sysinstall /usr/PCBSD/pc-sysinstall
+for i in `ls`
+do
+  if [ "${i}" != "pc-sysinstall" ]
+  then
+    ln -s /mntuzip/usr/PCBSD/$i /usr/PCBSD/$i
+  fi
+done
+
+
 # Create a /liveroot file system with some extra space
 /sbin/mdmfs -S -s 32M -O space md8 /liveroot



More information about the Commits mailing list