]> git.proxmox.com Git - mirror_zfs.git/blame - contrib/dracut/90zfs/zfs-needshutdown.sh.in
Run zfs load-key if needed in dracut
[mirror_zfs.git] / contrib / dracut / 90zfs / zfs-needshutdown.sh.in
CommitLineData
f8e87e20
R
1#!/bin/sh
2
3type getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh
4
5if zpool list 2>&1 | grep -q 'no pools available' ; then
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