f8e87e20 R |
1 | #!/bin/sh |
2 | |
3 | type getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh |
4 | |
5 | if zpool list 2>&1 | grep -q 'no pools available' ; 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 |
10 | fi |