1#!/bin/sh
2
3command -v getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh
4
5if [ -z "$(zpool get -Ho value name)" ]; 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