Handle ZFS root partition read-only cases

This commit is contained in:
Scott Ullrich 2010-08-15 14:02:29 -04:00
parent 9d869ea397
commit 87db1017ee

6
etc/rc
View File

@ -28,6 +28,12 @@ version=`cat /etc/version`
# Mount memory file system if it exists
echo "Mounting filesystems..."
# Handle ZFS read-only case
WHEREISROOT=`/sbin/mount | /usr/bin/grep " / " | /usr/bin/grep "tank" | /usr/bin/cut -d' ' -f1`
if [ "$WHEREISROOT" != "" ]; then
/sbin/zfs set readonly=off $WHEREISROOT
fi
if [ "$PLATFORM" = "cdrom" ]; then
/etc/rc.cdrom
fi