The source project of this merge request has been removed.
Fix Root on ZFS Native Encryption support
This patch fixes several bugs:
- Add
zfs_wait
to accommodatempt2sas
hardware that does slow asynchronous drive initialization. See here. - Import from
zpool.cache
file if exist. This is a prerequisite for ZFS pools with persistent block device names. They can not be mounted byzpool import -d /dev
. - Enclose variable in double-quotes. Without this, initramfs will fail to unlock encrypted datasets with
sh: active, unknown operand
. - Use
while ! eval
to retry password if the input is wrong, instead of dropping into emergency shell.
A detailed Alpine Linux on natively encrypted ZFS installation guide can be found on AlpineWiki, which needs this patch and the patch for eudev. One can try it out in a virtual machine if interested.
Edited by Ghost User