[PC-BSD Commits] r17158 - pcbsd/current/overlays/mfsroot-overlay/etc
svn at pcbsd.org
svn at pcbsd.org
Fri Jun 1 10:44:06 PDT 2012
Author: kris
Date: 2012-06-01 17:44:05 +0000 (Fri, 01 Jun 2012)
New Revision: 17158
Modified:
pcbsd/current/overlays/mfsroot-overlay/etc/pcbsd-rc.sh
Log:
Give more time for CD drives to show up, and allow user opportunity to
manually try mounting if all else fails.
Modified: pcbsd/current/overlays/mfsroot-overlay/etc/pcbsd-rc.sh
===================================================================
--- pcbsd/current/overlays/mfsroot-overlay/etc/pcbsd-rc.sh 2012-06-01 17:38:21 UTC (rev 17157)
+++ pcbsd/current/overlays/mfsroot-overlay/etc/pcbsd-rc.sh 2012-06-01 17:44:05 UTC (rev 17158)
@@ -7,8 +7,8 @@
echo "
-Sleeping 10 seconds to let devices settle"
-sleep 10
+Sleeping 15 seconds to let devices settle"
+sleep 15
CDDEVS="`ls -1 /dev/acd* 2>/dev/null` `ls -1 /dev/cd* 2>/dev/null`"
@@ -123,13 +123,18 @@
if [ "$FOUND" = "0" ]
then
cd /dev
- echo "Error mounting install image!!!"
- echo "Please report this problem to PC-BSD support!"
+ echo "Could not locate install media!!!"
echo "Available devices are `ls *cd*` : `ls da*`"
- echo "Press ENTER to drop to shell. When finished, type in 'exit' to reboot."
+ echo "Please manually mount your install media to /cdmnt"
+ echo "Press ENTER to drop to shell. When finished, type in 'exit' to continue boot."
read tmp
/bin/sh
- /sbin/reboot
+ # Make sure the user did indeed mount the media
+ if [ ! -e "/cdmnt/pcbsd-media" ]; then
+ echo "No install media on /cdmnt... Rebooting..."
+ sleep 10
+ reboot
+ fi
else
echo "Found PCBSD image on: ${CDDEV}"
sleep 2
More information about the Commits
mailing list