[PC-BSD Commits] r2828 - in pcbsd: branches/7.0/installcd-overlay/usr/local/pcbsd/scripts trunk/installcd-overlay/usr/local/pcbsd/scripts

svn at pcbsd.org svn at pcbsd.org
Mon Sep 29 14:17:52 PDT 2008


Author: kris
Date: 2008-09-29 14:17:52 -0700 (Mon, 29 Sep 2008)
New Revision: 2828

Modified:
   pcbsd/branches/7.0/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.MountDisk.sh
   pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.MountDisk.sh
Log:

Setup the mount script to enable the swap device before mounting the disk drive. This is helpfulin cases of systems with little memory, and helps lzma decompress easier



Modified: pcbsd/branches/7.0/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.MountDisk.sh
===================================================================
--- pcbsd/branches/7.0/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.MountDisk.sh	2008-09-29 21:11:27 UTC (rev 2827)
+++ pcbsd/branches/7.0/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.MountDisk.sh	2008-09-29 21:17:52 UTC (rev 2828)
@@ -24,7 +24,13 @@
 fi
 
 
+# Check if we have a swap partition, and enable it now
+if [ -e "${ROOTPART}b" ]
+then
+  swapon ${ROOTPART}b
+fi
 
+# Set the encrypted swap extension, if the user selected it
 if [ -e "/tmp/encSwap" ]
 then
   ENC=".bde"

Modified: pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.MountDisk.sh
===================================================================
--- pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.MountDisk.sh	2008-09-29 21:11:27 UTC (rev 2827)
+++ pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.MountDisk.sh	2008-09-29 21:17:52 UTC (rev 2828)
@@ -24,7 +24,13 @@
 fi
 
 
+# Check if we have a swap partition, and enable it now
+if [ -e "${ROOTPART}b" ]
+then
+  swapon ${ROOTPART}b
+fi
 
+# Set the encrypted swap extension, if the user selected it
 if [ -e "/tmp/encSwap" ]
 then
   ENC=".bde"



More information about the Commits mailing list