Reviving an old topic: automount encrypted dataset on boot
Posted: Mon Jan 09, 2023 10:29 pm
I'm wondering if anyone has had success with automounting an encrypted dataset on boot? I'm aware of the ZetaWatch solution, but I don't think it will work in my situation, which is that the encrypted dataset holds my user home folder. I've successfully demonstrated to myself how to load a key from a file on non-ZFS filesystem (the apfs boot drive). I don't mind hard-coding it into a little shell script that has just two lines:
I feel like I probably have to add those lines to the zpool-import-all.sh script to control the sequencing, no? Are does anyone have a better idea?
Thanks,
Kurt
- Code: Select all
zfs load-key DATASET
zfs mount DATASET
I feel like I probably have to add those lines to the zpool-import-all.sh script to control the sequencing, no? Are does anyone have a better idea?
Thanks,
Kurt