-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zfs-linux-lts-poscat sd-zfs does not support zfs native encryption #4168
Comments
I've just discovered Now I get At this point I think that I should also clarify that I'm using native encryption, but it shouldn't be an issue given that no passphrase should be asked:
At this point it would be useful to see the |
I've been able to unlock the root account by adding
This is clearly an encryption issue. Running |
It looks there is a runtime hook for the busybox init which takes care of decrypting and which obviously don't get run with sd-zfs: https://aur.archlinux.org/cgit/aur.git/tree/zfs.initcpio.hook?h=zfs-utils-staging-git#n29 |
I got it working by adding |
Yep, currently it does not support zfs native encryption. I currently do not have plan to implement support (as the functionality largely overlaps with LUKS and it seems to be abandoned with various bugs not fixed), but that shouldn't be hard to implement given that |
I don't agree. First native encryption and LUKS don't overlap: I challenge you to send/receive encrypted backups without knowing the source encryption key with LUKS. I use it all the time to send incremental backups/snapshots, sometimes even to external USB disks. Also the fact that Tom Caputi left the project doesn't mean that native encryption is abandoned, on the contrary he is still available to review PRs: https://discourse.practicalzfs.com/t/the-future-of-the-zfs-native-encryption/1037 Do we want to talk about LUKS related issues? Several users of the zfs-dkms-staging-git package I co-maintain lost their data due to this zfs bug with LUKS: openzfs/zfs#16631 I might give this a shot if you're willing to review the code, but first I would like to know if it would be possible to host |
I see.
Yes, I'm willing to review and maintain the code. I will make a separate repo soon. |
问题类型 / Type of issues
受影响的软件包 / Affected packages
Hi, I'm trying to boot Arch Linux with
sd-zfs
(from the zfs-linux-lts-poscat package) +zfsbootmenu
(zfs set org.zfsbootmenu:commandline="rw" zroot/ROOT
) +zfs-import-scan
+zfs-mount-generator
but I'm getting stuck at "Failing to start Switch Root":HOOKS=(systemd sd-zfs autodetect microcode modconf kms keyboard sd-vconsole block filesystems fsck)
/etc/zfs/zfs-list.cache/zroot
has been populated and/etc/zfs/zpool.cache
does not exist.If I switch to the
zfs
hook (HOOKS=(base udev autodetect microcode modconf kms keyboard keymap consolefont block zfs filesystems fsck)
) it works:zfsbootmenu
ignores anyroot
entry and forcefully provides azfs=zroot/ROOT/arch
parameter.I don't know if that might the problem, because if you don't provide a
root
parameter it should default to thebootfs
which has been correctly set (zpool set bootfs=zroot/ROOT/arch zroot
).Any idea how to debug/fix this issue?
Please note that I'm not using the whole
zfs-linux-lts-poscat
package (I want to use zfs-dkms-staging-git/zfs-utils-staging-git along with the latest stable kernel) but instead a trimmed down version which provides just thesd-zfs
hook:If I manage to get it working with zfsbootmenu I would like to provide an
sd-zfs-poscat
AUR package, with your permission.The text was updated successfully, but these errors were encountered: