Skip to content

Commit

Permalink
contrib: dracut: zfs-needshutdown: don't list
Browse files Browse the repository at this point in the history
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Closes openzfs#13291
  • Loading branch information
nabijaczleweli authored and andrewc12 committed Sep 23, 2022
1 parent ee10ee4 commit b5ee452
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/dracut/90zfs/zfs-needshutdown.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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."
else
info "ZFS: There is an active pool, will export it."
Expand Down

0 comments on commit b5ee452

Please sign in to comment.