mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 01:24:38 +00:00
rc: explicity tell to unload
Otherwise we try to unload when it's there. Logic was correct but -b assumtion was incorrect as we do not touch drivers there or require any pool listing.
This commit is contained in:
parent
51d324013e
commit
f811f9723f
@ -114,9 +114,8 @@ timeout_prompt()
|
||||
zfs_load()
|
||||
{
|
||||
# we need to load ZFS to list pools
|
||||
if kldstat -qm zfs; then
|
||||
export ZFS="yes"
|
||||
else
|
||||
if ! kldstat -qm zfs; then
|
||||
export UNLOAD_ZFS="yes"
|
||||
kldload zfs
|
||||
fi
|
||||
|
||||
@ -130,7 +129,7 @@ zfs_load()
|
||||
|
||||
zfs_unload()
|
||||
{
|
||||
if [ -z "${ZFS}" ]; then
|
||||
if [ -n "${UNLOAD_ZFS}" ]; then
|
||||
kldunload zfs
|
||||
fi
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user