nixos/systemd: make sure all the device nodes are created in stage1#179693
nixos/systemd: make sure all the device nodes are created in stage1#179693K900 wants to merge 1 commit intoNixOS:masterfrom
Conversation
The ConditionFileNotEmpty override patch wasn't correct for stage1, which does have the modules in /lib. So, remove the condition instead, and set the right path with overrides in both stage1 and the final system. Also, make sure systemd-tmpfiles-setup-dev is pulled in to create all the necessary symlinks.
|
We can, yes. I'm not sure this is any better than shipping the patch though. |
|
@flokli do you know where the patch series comes from? |
|
The patch series is only maintained in nixpkgs these days. Please remove the patch, reformat/rename patches according to the comment at https://github.com/NixOS/nixpkgs/blob/master/pkgs/os-specific/linux/systemd/default.nix#L150-L153, and then open a new PR, targeting staging, linking to it from here. |
|
Maybe we should have a NixOS/systemd fork then? |
|
We used to have a systemd fork but we moved away from and moved to patch sets to make our life as maintainers slightly easier as we have been on a multi-year effort to drop or upstream as many patches as possible. We want to run systemd as vanilla as possible as it lowers maintenance burden for us. And the fact that we can remove this patch again signals this is the better choice from a maintenance perspective :) |
|
Let's continue in #182436. |
Description of changes
The ConditionFileNotEmpty override patch wasn't correct for stage1, which does have the modules in /lib. So, remove the condition instead, and set the right path with overrides in both stage1 and the final system.
Also, make sure systemd-tmpfiles-setup-dev is pulled in to create all the necessary symlinks.
Unfortunately requires a systemd rebuild.
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/)nixos/doc/manual/md-to-db.shto update generated release notes