Skip to main content
Topic: ZFS unlock at boot (Read 536 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

ZFS unlock at boot

I've been messing around with this for awhile but havent gotten anywhere.  I run Arch with a ZFS root, but they have some extra initcpio systemd based hooks that prompt for a key.  I tried to recreate these multiple ways but I guess im not doing it right. 

Then I thought, why not just edit /etc/defaults/zfs and add ZPOOL_IMPORT_OPTS="-l", so it will prompt for a key automatically at import!  That also didnt work.  Maybe you have to do something special to allow prompting for user input in an initcpio hook?  Not sure.  Does anyon have a good solution that currently works well?

Also, does anyknow know how native zfs encyption compares to a LUKS encrypted ZFS device?  I thought for awhile LUKS was supposed to be fast but not if thats changed.  Thanks!