contrib/dracut: zfs-lib: export_all: replace with inline zpool export -a

07a3312f17, which introduced this in
October of 2014, didn't have zpool export -a available; we do

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #13093
This commit is contained in:
наб
2022-02-12 14:08:02 +01:00
committed by Brian Behlendorf
parent 93669c3812
commit 6a41310c70
3 changed files with 2 additions and 20 deletions
+1 -3
View File
@@ -1,10 +1,8 @@
#!/bin/sh
. /lib/dracut-zfs-lib.sh
_do_zpool_export() {
info "ZFS: Exporting ZFS storage pools..."
errs=$(export_all -F 2>&1)
errs=$(zpool export -aF 2>&1)
ret=$?
echo "${errs}" | vwarn
if [ "${ret}" -ne 0 ]; then