[PC-BSD Commits] r16464 - pcbsd/current/overlays/mfsroot-overlay/etc

svn at pcbsd.org svn at pcbsd.org
Thu Apr 19 08:52:17 PDT 2012


Author: kris
Date: 2012-04-19 15:52:16 +0000 (Thu, 19 Apr 2012)
New Revision: 16464

Modified:
   pcbsd/current/overlays/mfsroot-overlay/etc/SetupInstall.sh
Log:

Fix some issues booting with < 512MB of ram



Modified: pcbsd/current/overlays/mfsroot-overlay/etc/SetupInstall.sh
===================================================================
--- pcbsd/current/overlays/mfsroot-overlay/etc/SetupInstall.sh	2012-04-19 14:29:08 UTC (rev 16463)
+++ pcbsd/current/overlays/mfsroot-overlay/etc/SetupInstall.sh	2012-04-19 15:52:16 UTC (rev 16464)
@@ -15,16 +15,13 @@
   /sbin/mdmfs -S -s ${MDSIZE}M -O space md2 /uzip
 
   echo "Mounting /usr"
-  MDDEVICE="`/sbin/mdconfig -a -t vnode -o readonly -f /cdmnt/usr.uzip`.uzip"
+  MDDEVICE="`/sbin/mdconfig -a -t vnode -o readonly -f /cdmnt/uzip/usr.uzip`.uzip"
   /sbin/mount -r /dev/$MDDEVICE /usr
 
   echo "Setting up kernel space... Please Wait..."
-  rm -rf /boot/kernel >/dev/null 2>/dev/null
-  rm -rf /boot/modules >/dev/null 2>/dev/null
-  rm -rf /boot/device.hints >/dev/null 2>/dev/null
-  ln -s /cdmnt/boot/kernel /boot/kernel
-  ln -s /cdmnt/boot/modules /boot/modules
-  ln -s /cdmnt/boot/device.hints /boot/device.hints
+  ln -s /cdmnt/boot/kernel /uzip/kernel
+  ln -s /cdmnt/boot/modules /uzip/modules
+  ln -s /cdmnt/boot/device.hints /uzip/device.hints
 
   # End of loading if less than < 512 MB of ram
 else



More information about the Commits mailing list