nixosTests: fix tests that relies on an empty rootfs using a bootloader#234030
nixosTests: fix tests that relies on an empty rootfs using a bootloader#234030RaitoBezarius merged 11 commits intomasterfrom
Conversation
|
All of them were tested manually. |
eb4b238 to
076e8b3
Compare
|
@ofborg test nixosTests.initrd-luks-empty-passphrase |
|
@RaitoBezarius Probably needs to hit |
|
|
|
@ofborg test initrd-luks-empty-passphrase |
Fixing it. |
lheckemann
left a comment
There was a problem hiding this comment.
LGTM besides what @nikstur has already pointed out
|
These tests also need this fix:
|
This is necessary because this test relies on switching the root fs to an empty one which does not have a Nix store available in stage 1, therefore, we have to make this test host-store only. A better fix in the long term is to evaluate whether this is worth to enable a proper Nix store image for it with EROFS?
Same rationale as caf6f41.
Same rationale as caf6f41.
Same rationale as caf6f41.
Same rationale as caf6f41.
Same rationale as caf6f41.
Same rationale as caf6f41.
Same rationale as caf6f41.
0be1d20 to
89952f7
Compare
lvm2-sd1 is already working. Thinpool is broken for unrelated reasons but maintainers didn't get back to me, cc @ajs124. LUKS is fixed now, this is ready. |
|
I'm quite certain that at least |
which is here: ff3936e right ? |
|
@ofborg test nixosTests.lvm2.lvm-raid-sd-stage-1-linux-latest |
|
@ofborg test lvm2.lvm-raid-sd-stage-1-linux-latest |
Ah sorry, somehow, overlooked this multiple times. |
|
Successfully created backport PR for |
Description of changes
Some tests relies on booting on an empty rootfs to do their verification, this is not supported under
useBootLoader = true;by default which expect you want a "full system image" with a proper Nix store.Therefore, to make this work, we re-enable the host nix store.
A cleanup for overlay is included in this change, I will drop it.
Fixes the fallout for #227881.
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)