mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Handle ZFS root partition read-only cases
This commit is contained in:
parent
9d869ea397
commit
87db1017ee
6
etc/rc
6
etc/rc
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user