Reviving an old topic: automount encrypted dataset on boot

New to OpenZFS on OS X (Or ZFS in general)? Ask your questions here!

Reviving an old topic: automount encrypted dataset on boot

Postby Sharko » 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:

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
Sharko
 
Posts: 230
Joined: Thu May 12, 2016 12:19 pm

Return to Absolute Beginners Section

Who is online

Users browsing this forum: No registered users and 12 guests