Update 'freenas geli unlock.sh'

This commit is contained in:
2019-11-05 16:34:55 -05:00
parent 0dfe407c46
commit 2ced199a6a

View File

@@ -7,5 +7,8 @@ ZFS_MOUNT_POINT="/mnt"
# loop through the geli keys and try to unlock any partition
for key in $GELI_KEY_LOCATION/*; do
echo "$key"
done
for disk in /dev/gptid/*; do
geli attach -p -k ${key} ${disk}
done
done