mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 18:11:00 +03:00
1cc9cc2f89
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13291
11 lines
260 B
Bash
Executable File
11 lines
260 B
Bash
Executable File
#!/bin/sh
|
|
|
|
command -v getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh
|
|
|
|
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."
|
|
need_shutdown
|
|
fi
|