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
nixos/zfs: backport import and encryption handling improvements #42920
Conversation
fixes NixOS#41838 At the moment it works fine for "file://" keys, but does not work for dataPools with "prompt" keys, because the passphrase cannot be entered (yet). (cherry picked from commit a254d9d)
(cherry picked from commit 2f303d2)
(cherry picked from commit 78e6c0d)
(cherry picked from commit 81a8baf)
(cherry picked from commit cfd8c4e)
@GrahamcOfBorg test installer.zfsroot |
No attempt on aarch64-linux (full log) The following builds were skipped because they don't evaluate on aarch64-linux: tests.installer.zfsroot Partial log (click to expand)
|
FYI: I'm going to try building unit tests for these. In theory that should be doable. Probably don't want to wait up for me, but I'll try to report back tonight. |
@Baughn there is a zfs test, but it is not linked into release.nix, and I don't know its state. @adisbladis |
@woffs The test does run, at least; I have it executed as part of my system build scripts, just in case. What I mean is I'll try to expand it to test the multi-vdev / slow import case that I was trying to fix. And probably encryption as well, because why not. |
@Baughn great. Thanks for your work! |
@woffs The ZFS tests are fine and should pass. I intended to add them to some release but simply forgot. |
Failure on x86_64-linux (full log) Attempted: tests.installer.zfsroot Partial log (click to expand)
|
Just a timeout. Sorry for submitting a kernel build job here. I have built and tested this locally, it works (in my case, 24 disks, 1 encrypted data pool). |
@GrahamcOfBorg eval |
Success on x86_64-linux (full log) Attempted: zfs Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: zfs Partial log (click to expand)
|
Hi! Closing since 18.03 is in maintenance mode, the relevant changes are part of 18.09. Sorry this couldn't be taken care of earlier! |
Motivation for this change
backport #42269 and #41846
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)