Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 251c251
- < if grep -q ' / f2fs ' /proc/mounts ; then
- ---
- > if grep -q ' / f2fs\|zfs ' /proc/mounts ; then
- 253c253,261
- < /sbin/mount -w -v -n -o remount /
- ---
- > ZFSROOT=$(/sbin/mount | grep "on / type zfs" | cut -d' ' -f1)
- > if [ -z "$ZFSROOT" ]; then
- > /sbin/mount -w -v -n -o remount /
- > else
- > echo "----Looks like zfs is mounted on root!----"
- > /sbin/zfs set readonly=off ${ZFSROOT%%/${ZFSROOT##*/}}
- > # the rest of the datasets are mounted below
- > fi
- >
- 299c307
- < if [ $? -gt 0 ] ; then
- ---
- > if [ $? -gt 0 ] ; then
- 364a373,379
- >
- > # zfs
- > rm -f /var/lock/zfs/zfs
- > echo "Mounting zfs datasets now:"
- > if [ -x /etc/rc.d/rc.zfs ]; then
- > /etc/rc.d/rc.zfs start
- > fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement