mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 18:11:00 +03:00
11 lines
265 B
Bash
11 lines
265 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
type getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh
|
||
|
|
||
|
if zpool list 2>&1 | grep -q 'no pools available' ; then
|
||
|
info "ZFS: No active pools, no need to export anything."
|
||
|
else
|
||
|
info "ZFS: There is an active pool, will export it."
|
||
|
need_shutdown
|
||
|
fi
|