mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-31 19:24:09 +03:00
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 Upstream-commit:6a41310c70Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13093
This commit is contained in:
@@ -1,14 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
. /lib/dracut-zfs-lib.sh
|
||||
|
||||
_do_zpool_export() {
|
||||
ret=0
|
||||
errs=""
|
||||
final="${1}"
|
||||
|
||||
info "ZFS: Exporting ZFS storage pools..."
|
||||
errs=$(export_all -F 2>&1)
|
||||
errs=$(zpool export -aF 2>&1)
|
||||
ret=$?
|
||||
[ -z "${errs}" ] || echo "${errs}" | vwarn
|
||||
if [ "x${ret}" != "x0" ]; then
|
||||
|
||||
Reference in New Issue
Block a user