initial commit
[dracut-zfs-mount.git] / dracut-zfs-mount.patch
1 --- a/contrib/dracut/90zfs/mount-zfs.sh.in 2026-06-11 21:00:38.614793958 -0400
2 +++ b/contrib/dracut/90zfs/mount-zfs.sh.in 2026-06-11 21:02:55.365106238 -0400
3 @@ -85,7 +85,7 @@
4 if ! zpool get -Ho value name "${ZFS_POOL}" > /dev/null 2>&1; then
5 info "ZFS: Importing pool ${ZFS_POOL}..."
6 # shellcheck disable=SC2086
7 - if ! zpool import -N ${ZPOOL_IMPORT_OPTS} "${ZFS_POOL}"; then
8 + if ! zpool import -NR /sysroot ${ZPOOL_IMPORT_OPTS} "${ZFS_POOL}"; then
9 warn "ZFS: Unable to import pool ${ZFS_POOL}"
10 rootok=0
11 return 1
12 @@ -118,3 +118,9 @@
13 rootok=0
14 return 1
15 fi
16 +
17 +info "ZFS: Mounting all datasets..."
18 +if ! zfs mount -a; then
19 + rootok=0
20 + return 1
21 +fi