1#!/bin/sh 2 3command -v 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 11