Try to load zfs module
This commit is contained in:
parent
9a57c64941
commit
03a3f7ac29
|
@ -12,6 +12,13 @@ DISK_TEMP_LIST="/tmp/zfs.disks"
|
||||||
# Store disks list in a temp file
|
# Store disks list in a temp file
|
||||||
find /dev/disk/by-vdev -maxdepth 1 -type l -printf "%f\\n" > "${DISK_TEMP_LIST}"
|
find /dev/disk/by-vdev -maxdepth 1 -type l -printf "%f\\n" > "${DISK_TEMP_LIST}"
|
||||||
|
|
||||||
|
# Test zfs module {{{
|
||||||
|
if ! lsmod | grep -q "^zfs"
|
||||||
|
then
|
||||||
|
printf "%b\\n" "Try to load ZFS module"
|
||||||
|
modprobe zfs
|
||||||
|
fi
|
||||||
|
# }}}
|
||||||
# Pool creation {{{
|
# Pool creation {{{
|
||||||
## Initialize loop vars
|
## Initialize loop vars
|
||||||
group=1
|
group=1
|
||||||
|
|
Loading…
Reference in New Issue