blob: 393753fbf6abe8017f4e476c79a86745136fa889 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/bin/sh
. /lib/dracut-zfs-lib.sh
_do_zpool_export() {
local ret=0
local final="${1}"
local opts=""
if [ "x${final}" != "x" ]; then
opts="-f"
fi
info "Exporting ZFS storage pools."
export_all ${opts} || ret=$?
if [ "x${final}" != "x" ]; then
info "zpool list"
zpool list 2>&1 | vinfo
fi
return ${ret}
}
if command -v zpool >/dev/null; then
_do_zpool_export "${1}"
else
:
fi
|