]> git.proxmox.com Git - mirror_zfs.git/blobdiff - contrib/dracut/90zfs/mount-zfs.sh.in
contrib: dracut: zfs-lib: remove find_bootfs
[mirror_zfs.git] / contrib / dracut / 90zfs / mount-zfs.sh.in
index 2288c80aed3eb1059fcd1ff5ce2d2349fa065609..5fd406231a58c04a557fe1a1e3dc79b571792598 100755 (executable)
@@ -28,10 +28,10 @@ ZFS_DATASET=
 ZFS_POOL=
 
 if [ "${root}" = "zfs:AUTO" ] ; then
-       if ! ZFS_DATASET="$(find_bootfs)" ; then
+       if ! ZFS_DATASET="$(zpool get -Ho value bootfs | grep -m1 -vFx -)"; then
                # shellcheck disable=SC2086
                zpool import -N -a ${ZPOOL_IMPORT_OPTS}
-               if ! ZFS_DATASET="$(find_bootfs)" ; then
+               if ! ZFS_DATASET="$(zpool get -Ho value bootfs | grep -m1 -vFx -)"; then
                        warn "ZFS: No bootfs attribute found in importable pools."
                        zpool export -aF