[PC-BSD Commits] r6998 - in pcbsd: current/pc-sysinstall/backend-query stable/pc-sysinstall/backend-query

svn at pcbsd.org svn at pcbsd.org
Mon Jun 21 14:08:26 PDT 2010


Author: kris
Date: 2010-06-21 14:08:26 -0700 (Mon, 21 Jun 2010)
New Revision: 6998

Modified:
   pcbsd/current/pc-sysinstall/backend-query/update-part-list.sh
   pcbsd/stable/pc-sysinstall/backend-query/update-part-list.sh
Log:

When checking for update partitions, mount in read-only mode

Thanks Alexander Yerenkow!



Modified: pcbsd/current/pc-sysinstall/backend-query/update-part-list.sh
===================================================================
--- pcbsd/current/pc-sysinstall/backend-query/update-part-list.sh	2010-06-21 21:05:00 UTC (rev 6997)
+++ pcbsd/current/pc-sysinstall/backend-query/update-part-list.sh	2010-06-21 21:08:26 UTC (rev 6998)
@@ -59,7 +59,7 @@
 	_dsk="${i}p2.journal" 
     fi
 
-   mount ${_dsk} ${FSMNT} >>${LOGOUT} 2>>${LOGOUT}
+   mount -o ro ${_dsk} ${FSMNT} >>${LOGOUT} 2>>${LOGOUT}
    if [ "${?}" = "0" -a -e "${FSMNT}/bin/sh" ] ; then
     	get_fbsd_ver "`echo ${_dsk} | sed 's|/dev/||g'`"
         umount -f ${FSMNT} >/dev/null 2>/dev/null
@@ -76,7 +76,7 @@
 _zps="`zpool list | grep -v 'NAME' | cut -d ' ' -f 1`"
 for _zpools in ${_zps}
 do
-   mount -t zfs ${_zpools} ${FSMNT} >>${LOGOUT} 2>>${LOGOUT}
+   mount -o ro -t zfs ${_zpools} ${FSMNT} >>${LOGOUT} 2>>${LOGOUT}
    if [ "${?}" = "0" -a -e "${FSMNT}/bin/sh" ] ; then
     	get_fbsd_ver "${_zpools}"
         umount -f ${FSMNT} >/dev/null 2>/dev/null

Modified: pcbsd/stable/pc-sysinstall/backend-query/update-part-list.sh
===================================================================
--- pcbsd/stable/pc-sysinstall/backend-query/update-part-list.sh	2010-06-21 21:05:00 UTC (rev 6997)
+++ pcbsd/stable/pc-sysinstall/backend-query/update-part-list.sh	2010-06-21 21:08:26 UTC (rev 6998)
@@ -59,7 +59,7 @@
 	_dsk="${i}p2.journal" 
     fi
 
-   mount ${_dsk} ${FSMNT} >>${LOGOUT} 2>>${LOGOUT}
+   mount -o ro ${_dsk} ${FSMNT} >>${LOGOUT} 2>>${LOGOUT}
    if [ "${?}" = "0" -a -e "${FSMNT}/bin/sh" ] ; then
     	get_fbsd_ver "`echo ${_dsk} | sed 's|/dev/||g'`"
         umount -f ${FSMNT} >/dev/null 2>/dev/null
@@ -76,7 +76,7 @@
 _zps="`zpool list | grep -v 'NAME' | cut -d ' ' -f 1`"
 for _zpools in ${_zps}
 do
-   mount -t zfs ${_zpools} ${FSMNT} >>${LOGOUT} 2>>${LOGOUT}
+   mount -o ro -t zfs ${_zpools} ${FSMNT} >>${LOGOUT} 2>>${LOGOUT}
    if [ "${?}" = "0" -a -e "${FSMNT}/bin/sh" ] ; then
     	get_fbsd_ver "${_zpools}"
         umount -f ${FSMNT} >/dev/null 2>/dev/null



More information about the Commits mailing list