[PC-BSD Commits] r2565 - pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts

svn at pcbsd.org svn at pcbsd.org
Fri Aug 8 08:01:53 PDT 2008


Author: kris
Date: 2008-08-08 08:01:53 -0700 (Fri, 08 Aug 2008)
New Revision: 2565

Modified:
   pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.SysConfig.sh
Log:

Little bit of cleanup on the UFS unmounting scripts as well



Modified: pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.SysConfig.sh
===================================================================
--- pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.SysConfig.sh	2008-08-08 14:56:54 UTC (rev 2564)
+++ pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.SysConfig.sh	2008-08-08 15:01:53 UTC (rev 2565)
@@ -195,29 +195,30 @@
   # Unmount the /bootdir partition again
   umount ${FSMNT}
 
-fi
+else
+  # We are not using ZFS, finish the unmounting now
 
+  # Get the disks to unmount
+  UMNTDEVS="`cat ${FSMNT}/etc/fstab | grep ufs | cut -d ' ' -f 1`"
 
-#echo "Unmounting Disk...";
-# Get the disks to unmount
-UMNTDEVS="`cat ${FSMNT}/etc/fstab | grep ufs | cut -d ' ' -f 1`"
+  cd / >/dev/null
 
-cd / >/dev/null
+  SKIP="0"
 
-SKIP="0"
+  #Umount those in List
+  for i in $UMNTDEVS
+  do
+    if [ "${SKIP}" = "0" ]
+    then
+      SKIP="1"
+    else
+      umount -f $i >/dev/null 2>/dev/null
+    fi
+  done
 
-#Umount those in List
-for i in $UMNTDEVS
-do
-  if [ "${SKIP}" = "0" ]
-  then
-    SKIP="1"
-  else
-    umount -f $i >/dev/null 2>/dev/null
-  fi
-done
+  umount -f ${FSMNT} >/dev/null
 
-umount -f ${FSMNT} >/dev/null
+fi
 
 # If we are not using a network URL, unmount the CD
 if [ ! -e "/tmp/networkURL" ]



More information about the Commits mailing list