Advertisement
zezaocapoeira

rc.S-slackware64-15-zfs.patch

May 9th, 2023
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. 251c251
  2. < if grep -q ' / f2fs ' /proc/mounts ; then
  3. ---
  4. > if grep -q ' / f2fs\|zfs ' /proc/mounts ; then
  5. 253c253,261
  6. < /sbin/mount -w -v -n -o remount /
  7. ---
  8. > ZFSROOT=$(/sbin/mount | grep "on / type zfs" | cut -d' ' -f1)
  9. > if [ -z "$ZFSROOT" ]; then
  10. > /sbin/mount -w -v -n -o remount /
  11. > else
  12. > echo "----Looks like zfs is mounted on root!----"
  13. > /sbin/zfs set readonly=off ${ZFSROOT%%/${ZFSROOT##*/}}
  14. > # the rest of the datasets are mounted below
  15. > fi
  16. >
  17. 299c307
  18. < if [ $? -gt 0 ] ; then
  19. ---
  20. > if [ $? -gt 0 ] ; then
  21. 364a373,379
  22. >
  23. > # zfs
  24. > rm -f /var/lock/zfs/zfs
  25. > echo "Mounting zfs datasets now:"
  26. > if [ -x /etc/rc.d/rc.zfs ]; then
  27. > /etc/rc.d/rc.zfs start
  28. > fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement