]> git.proxmox.com Git - mirror_zfs.git/blame - contrib/dracut/90zfs/zfs-needshutdown.sh.in
autoconf: use include directives instead of recursing down contrib
[mirror_zfs.git] / contrib / dracut / 90zfs / zfs-needshutdown.sh.in
CommitLineData
16692e6b 1#!/bin/sh
f8e87e20 2
16692e6b 3command -v getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh
f8e87e20 4
1cc9cc2f 5if [ -z "$(zpool get -Ho value name)" ]; then
f8e87e20
R
6 info "ZFS: No active pools, no need to export anything."
7else
8 info "ZFS: There is an active pool, will export it."
9 need_shutdown
10fi