Conversation
Note that this PR here is about netboot.nix, not qemu-vm.nix.
Prepending the overlayfs parameters with In the other PR I am missing ensuring the existence of the upperdir and workdir. overlayfs won't create them by itself but it insists on them being there. |
|
The point is that you're using |
e736596 to
0520552
Compare
@ElvishJerricco Right, |
nixos/tests/boot.nix
Outdated
There was a problem hiding this comment.
Could we continue testing with the scripted stage-1 (additionally)? I love that we're enabling use of systemd stage-1, but I'd not like if the scripted stage-1 bitrotted before being removed :)
There was a problem hiding this comment.
You're right, I dropped that change.
If you tell me where I could still add it as a separate test.
There was a problem hiding this comment.
Maybe renaming extraConfig to extraMachineConfig and adding an extraSystemConfig argument which gets added to the modules list, then adding another test called uefiNetbootSystemd or something.
Or if you're in the mood for bigger refactors, making use of how the test thing is based on the module system nowadays, but I'm definitely fine for that not to happen now.
0520552 to
4f4dba9
Compare
lheckemann
left a comment
There was a problem hiding this comment.
It's just occurred to me that this would probably break switching configs in the booted system, since /sysroot won't exist in stage-2. We should probably test this, and if my suspicion is correct, work out how to get around it (maybe an initrd-specific mount unit?)
|
#273642 related |
|
systemd/systemd#30377 would also eliminate the need for the mkdir service, at least if there's a solution for "what root are the referenced dirs from". |
The mkdir-rw-store service is copied from NixOS#270611. This needs to tested thoroughly (and maybe made optional? Though I'd prefer not to) before it can be merged. Co-Authored-By: Astro <astro@spaceboyz.net>
|
Adrian Vovk has pointed out that if we mount the tmpfs under |
|
Why is this only needed for systemd stage 1? Why don't we need |
|
Because stage-1-init.sh has specific support for Adding the prefix to the overlay component directories and for creating the upper and work dirs if they don't exist nixpkgs/nixos/modules/system/boot/stage-1-init.sh Lines 396 to 402 in 139f397 |
|
Now that #286176 is merged, we should just use that in this PR. |
4f4dba9 to
6fbf631
Compare
|
Updated to just use #286176 which really works well! |
Description of changes
Allows the netboot module to work with
boot.initrd.systemd.enableThings 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/)Priorities
Add a 👍 reaction to pull requests you find important.