For years I've automatically unlocked on boot and mounted my encrypted geli disks using remotely mounted USB drives as the geli example script below, so If you steel the box without the remote USB's it's useless. So now I need to do the same with the new ZFS encryption since GLI is no longer supported.
*******************************************************************************
#!/bin/sh
#Obsolete for new encryptions from Truenas >12
#decrypts on boot up encrypted usb/HDDs > Mounts them > executes net command.
geli attach -j /mnt/USB5/Utilities/passkeyfile/passkey -k /data/geli/tkd89_blah_blah_blah_xyz.key /dev/gptid/rff_blah_blah_blah_xy
zpool import -R /mnt HDD1
#Exits the script
exit 1
************************************************************************************
How would I do the same using the new ZFS encryption? Where would I find the keys for example, though I think with the new I should only encrypt with a password but still need to point it to it's location and which disk/dataset to decrypt and mount.
*******************************************************************************
#!/bin/sh
#Obsolete for new encryptions from Truenas >12
#decrypts on boot up encrypted usb/HDDs > Mounts them > executes net command.
geli attach -j /mnt/USB5/Utilities/passkeyfile/passkey -k /data/geli/tkd89_blah_blah_blah_xyz.key /dev/gptid/rff_blah_blah_blah_xy
zpool import -R /mnt HDD1
#Exits the script
exit 1
************************************************************************************
How would I do the same using the new ZFS encryption? Where would I find the keys for example, though I think with the new I should only encrypt with a password but still need to point it to it's location and which disk/dataset to decrypt and mount.
Last edited: