Linux 6.12 compat: META
[zfs.git] / contrib / dracut / 90zfs / zfs-needshutdown.sh.in
blob7fb825bc95a2721e67925d604cff97a0c7bc7dc6
1 #!/bin/sh
3 command -v getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh
5 if [ -z "$(zpool get -Ho value name)" ]; then
6 info "ZFS: No active pools, no need to export anything."
7 else
8 info "ZFS: There is an active pool, will export it."
9 need_shutdown