nixos/tests: drop LegacyStartCommand#291544
Conversation
There was a problem hiding this comment.
This is a different file.
nix-repl> OVMF.firmware
"/nix/store/jhnng8aqgw824a08ly9h878rzzgm5m92-OVMF-202402-fd/FV/OVMF_CODE.fd"
The other day I tried to boot a USB stick in qemu, but it didn't work with this attribute; I had to use OVMF.fd, not OVMF_CODE.fd.
Maybe this use case is different; I'm certainly no expert on this, but it looks wrong.
There was a problem hiding this comment.
You were probably using -bios OVMF.fd, which is not entirely correct, you actually need to use the OVMF_CODE.fd and OVMF_VARS.fd files separately. AFAICT Xen should do the right thing here, though I haven't tested it directly.
|
Sorry about the churn, I missed the leading comma in f6fc51d#diff-282053126a46a4b207a8b94587e595c7be8ded0fb79a5d8f42d4abe28bb66c13L160 🤦 I’ll review this, as I do agree that we should discourage |
|
I think we should apply your fix first then, and we can merge this later when there's no rush. |
|
This PR is just scoped to tests now. |
We have passthru attributes, use them.
…ne API We can finally do this now that it's no longer used.
…Command": "..."})
|
Not exactly sure why but this change broke some of clevis tests (like |
Scheduled for removal in 24.11, so let's follow through. Added in NixOS#291544.
Scheduled for removal in 24.11, so let's follow through. Added in NixOS#291544. (cherry picked from commit 71306e6) (cherry picked from commit 8427b6f)
Description of changes
Switches the remaining tests that use the
LegacyStartCommandAPI to generate a start command in the test body and pass it to the driver.All the affected tests are still working (at least on x86_64) after this change, except
boot.ubootExtlinux, which hasn't worked before this change either.The commits are roughly ordered as least objectionable to most objectionable, so if people really want to keep the existing API, I can move that to a separate change.
Also, gave all the installer/boot tests more RAM, because they are otherwise hitting swap heavily, which slows things down A LOT.
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.