Always attempt to probe the ZFS kernel module

This commit is contained in:
Zach Dykstra 2020-03-24 17:55:37 -05:00
parent 931051d9a1
commit b4d0c22850
1 changed files with 2 additions and 5 deletions

View File

@ -21,11 +21,8 @@ export FZF_DEFAULT_OPTS="--layout=reverse-list --cycle \
BASE="$( mktemp -d /tmp/zfs.XXXX )"
# I should probably just modprobe zfs right off the bat
# rootok is always 1 here, otherwise we wouldn't be here ...
if [ ${rootok} -eq 1 ]; then
modprobe zfs 2>/dev/null
udevadm settle
fi
modprobe zfs 2>/dev/null
udevadm settle
# Find all pools by name that are listed as ONLINE, then import them
response="$( find_online_pools )"