[PC-BSD Commits] r5654 - pcbsd/trunk/mfsroot-overlay/etc

svn at pcbsd.org svn at pcbsd.org
Fri Dec 18 09:12:36 PST 2009


Author: kris
Date: 2009-12-18 09:12:36 -0800 (Fri, 18 Dec 2009)
New Revision: 5654

Modified:
   pcbsd/trunk/mfsroot-overlay/etc/pcbsd-rc.sh
Log:

Mount USB image in read-only mode, to prevent issues with corrupting FS if crashed



Modified: pcbsd/trunk/mfsroot-overlay/etc/pcbsd-rc.sh
===================================================================
--- pcbsd/trunk/mfsroot-overlay/etc/pcbsd-rc.sh	2009-12-18 15:49:51 UTC (rev 5653)
+++ pcbsd/trunk/mfsroot-overlay/etc/pcbsd-rc.sh	2009-12-18 17:12:36 UTC (rev 5654)
@@ -44,7 +44,7 @@
 do
   # Find the CD Device
   echo "Checking for install image on: ${j}"
-  /sbin/mount $j /cdmnt >/dev/null 2>/dev/null
+  /sbin/mount -r $j /cdmnt >/dev/null 2>/dev/null
   if [ "$?" = "0" ]
   then
     if [ -e "/cdmnt/uzip/usr.uzip" ]
@@ -70,7 +70,7 @@
 do
   # Find the CD Device
   echo "Checking for msdosfs install image on: ${j}"
-  /sbin/mount -t msdosfs $j /cdmnt >/dev/null 2>/dev/null
+  /sbin/mount -r -t msdosfs $j /cdmnt >/dev/null 2>/dev/null
   if [ "$?" = "0" ]
   then
     if [ -e "/cdmnt/uzip/usr.uzip" ]



More information about the Commits mailing list