Advertisement
zezaocapoeira

init-slackware64-15-zfs.patch

May 9th, 2023
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. 190a191,197
  2. > if [ "${ROOTFS}" == "zfs" ]; then
  3. > /sbin/zpool import -N -d /dev/disk/by-id ${ROOTDEV%%/*}
  4. > /sbin/zfs set mountpoint=/ ${ROOTDEV} # ZFS on root, jsr added
  5. > /sbin/zfs set readonly=on ${ROOTDEV%%/${ROOTDEV##*/}} # ZFS on root, jsr added
  6. > mount -t $ROOTFS $ROOTDEV /mnt # ZFS on root, jsr modified
  7. > fi
  8. >
  9. 325,326c332,335
  10. < mount -o ro${ROOTFLAGS:+,$ROOTFLAGS} -t $ROOTFS $ROOTDEV /mnt
  11. <
  12. ---
  13. > if [ "${ROOTFS}" != "zfs" ]; then
  14. > mount -o ro${ROOTFLAGS:+,$ROOTFLAGS} -t $ROOTFS $ROOTDEV /mnt
  15. > fi
  16. >
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement