[PC-BSD Commits] r5551 - pcbsd/trunk/pc-sysinstall/backend

svn at pcbsd.org svn at pcbsd.org
Fri Dec 11 07:32:50 PST 2009


Author: kris
Date: 2009-12-11 07:32:50 -0800 (Fri, 11 Dec 2009)
New Revision: 5551

Modified:
   pcbsd/trunk/pc-sysinstall/backend/functions-unmount.sh
   pcbsd/trunk/pc-sysinstall/backend/functions-upgrade.sh
Log:

Make sure we don't have a stray shell causing unmount to fail



Modified: pcbsd/trunk/pc-sysinstall/backend/functions-unmount.sh
===================================================================
--- pcbsd/trunk/pc-sysinstall/backend/functions-unmount.sh	2009-12-11 10:02:57 UTC (rev 5550)
+++ pcbsd/trunk/pc-sysinstall/backend/functions-unmount.sh	2009-12-11 15:32:50 UTC (rev 5551)
@@ -24,6 +24,7 @@
 {
    # Copy the logfile to disk before we unmount
    cp ${LOGOUT} ${FSMNT}/pc-sysinstall.log
+   cd /
 
    # Lets read our partition list, and unmount each
    ##################################################################
@@ -71,6 +72,8 @@
 # Unmounts any filesystems after a failure
 unmount_all_filesystems_failure()
 {
+  cd /
+
   # if we did a fresh install, start unmounting
   if [ "${INSTALLMODE}" = "fresh" ]
   then

Modified: pcbsd/trunk/pc-sysinstall/backend/functions-upgrade.sh
===================================================================
--- pcbsd/trunk/pc-sysinstall/backend/functions-upgrade.sh	2009-12-11 10:02:57 UTC (rev 5550)
+++ pcbsd/trunk/pc-sysinstall/backend/functions-upgrade.sh	2009-12-11 15:32:50 UTC (rev 5551)
@@ -126,6 +126,8 @@
 # Function which unmounts all the mounted file-systems
 unmount_upgrade()
 {
+   cd /
+
    # Run our saved unmount script for these file-systems
    rc_nohalt "sh ${TMPDIR}/.upgrade-unmount"
 };



More information about the Commits mailing list