Advertisement
zezaocapoeira

rc.6-slackware64-15-zfs.patch

May 9th, 2023
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. 258d257
  2. < /bin/mount -v -n -o remount,ro /
  3. 259a259,266
  4. >
  5. > ZFSROOT=$(/sbin/mount | grep "on / type zfs" | cut -d' ' -f1)
  6. > if [ -z "$ZFSROOT" ]; then
  7. > /bin/mount -v -n -o remount,ro /
  8. > else
  9. > echo "----Setting zfs ROOT to readonly----"
  10. > /sbin/zfs set readonly=on ${ZFSROOT%%/${ZFSROOT##*/}}
  11. > fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement