repo.or.cz
/
zfs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Linux 6.12 compat: META
[zfs.git]
/
contrib
/
dracut
/
90zfs
/
zfs-needshutdown.sh.in
blob
7fb825bc95a2721e67925d604cff97a0c7bc7dc6
1
#!/bin/sh
2
3
command -v
getarg
>/
dev
/
null
2
>&
1
|| .
/
lib
/
dracut-lib.sh
4
5
if
[
-z
"$(zpool get -Ho value name)"
];
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