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

svn at pcbsd.org svn at pcbsd.org
Fri Dec 18 09:13:19 PST 2009


Author: kris
Date: 2009-12-18 09:13:19 -0800 (Fri, 18 Dec 2009)
New Revision: 5655

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

Mount USB images read-only during install



Modified: pcbsd/trunk/pc-sysinstall/backend/functions-mountoptical.sh
===================================================================
--- pcbsd/trunk/pc-sysinstall/backend/functions-mountoptical.sh	2009-12-18 17:12:36 UTC (rev 5654)
+++ pcbsd/trunk/pc-sysinstall/backend/functions-mountoptical.sh	2009-12-18 17:13:19 UTC (rev 5655)
@@ -72,7 +72,7 @@
      for i in `ls -1 /dev/da* 2>/dev/null`
      do
        # Check if we can mount this device UFS
-       /sbin/mount $i ${CDMNT}
+       /sbin/mount -r $i ${CDMNT}
 
        # Check the package type to see if we have our install data
        if [ -e "${CDMNT}/${INSFILE}" ]
@@ -85,7 +85,7 @@
        /sbin/umount ${CDMNT} >/dev/null 2>/dev/null
 
        # Also check if it is a FAT mount
-       /sbin/mount -t msdosfs $i ${CDMNT}
+       /sbin/mount -r -t msdosfs $i ${CDMNT}
 
        # Check the package type to see if we have our install data
        if [ -e "${CDMNT}/${INSFILE}" ]



More information about the Commits mailing list