contrib: dracut: zfs-needshutdown: don't list
Upstream-commit: 1cc9cc2f89
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #13291
This commit is contained in:
parent
a0e81a4074
commit
0947096044
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
command -v getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh
|
command -v getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh
|
||||||
|
|
||||||
if zpool list 2>&1 | grep -q 'no pools available' ; then
|
if [ -z "$(zpool get -Ho value name)" ]; then
|
||||||
info "ZFS: No active pools, no need to export anything."
|
info "ZFS: No active pools, no need to export anything."
|
||||||
else
|
else
|
||||||
info "ZFS: There is an active pool, will export it."
|
info "ZFS: There is an active pool, will export it."
|
||||||
|
|
Loading…
Reference in New Issue