[PC-BSD Commits] r5541 - pcbsd/trunk/pc-sysinstall/backend
svn at pcbsd.org
svn at pcbsd.org
Thu Dec 10 12:37:37 PST 2009
Author: kris
Date: 2009-12-10 12:37:37 -0800 (Thu, 10 Dec 2009)
New Revision: 5541
Modified:
pcbsd/trunk/pc-sysinstall/backend/functions-unmount.sh
Log:
After doing an install, copy the logfile to /pc-sysinstall.log on the installed system for the
user to inspect later
Modified: pcbsd/trunk/pc-sysinstall/backend/functions-unmount.sh
===================================================================
--- pcbsd/trunk/pc-sysinstall/backend/functions-unmount.sh 2009-12-10 20:23:19 UTC (rev 5540)
+++ pcbsd/trunk/pc-sysinstall/backend/functions-unmount.sh 2009-12-10 20:37:37 UTC (rev 5541)
@@ -22,6 +22,9 @@
# Unmounts all our mounted file-systems
unmount_all_filesystems()
{
+ # Copy the logfile to disk before we unmount
+ cp ${LOGOUT} ${FSMNT}/pc-sysinstall.log
+
# Lets read our partition list, and unmount each
##################################################################
for PART in `ls ${PARTDIR}`
@@ -44,13 +47,13 @@
# Check if we've found "/" again, don't need to mount it twice
if [ "$PARTMNT" != "/" -a "${PARTMNT}" != "none" -a "${PARTFS}" != "ZFS" ]
then
- rc_halt "umount ${FSMNT}${PARTMNT}"
+ rc_nohalt "umount ${FSMNT}${PARTMNT}"
fi
done
# Last lets the /mnt partition
#########################################################
- rc_halt "umount ${FSMNT}"
+ rc_nohalt "umount ${FSMNT}"
# Unmount our CDMNT
rc_nohalt "umount ${CDMNT}"
More information about the Commits
mailing list