Try to load zfs module

This commit is contained in:
Jeremy Gardais 2018-06-25 17:01:07 +02:00
parent 9a57c64941
commit 03a3f7ac29
1 changed files with 7 additions and 0 deletions

View File

@ -12,6 +12,13 @@ DISK_TEMP_LIST="/tmp/zfs.disks"
# Store disks list in a temp file
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 {{{
## Initialize loop vars
group=1