Skip to content

Comments

nixos/systemd: make sure all the device nodes are created in stage1#182436

Merged
flokli merged 1 commit intoNixOS:stagingfrom
K900:systemd-initrd-fixes
Jul 22, 2022
Merged

nixos/systemd: make sure all the device nodes are created in stage1#182436
flokli merged 1 commit intoNixOS:stagingfrom
K900:systemd-initrd-fixes

Conversation

@K900
Copy link
Contributor

@K900 K900 commented Jul 22, 2022

Description of changes

The ConditionFileNotEmpty override patch wasn't correct for stage1, which does have the modules in /lib. So, remove the patch and set the right path with overrides in the final system.

Also, make sure systemd-tmpfiles-setup-dev is pulled in to create all the necessary symlinks.

Also, use some git tricks to normalize patches harder for optimal diffability.

Respin of #179693 which was retargeted wrong.

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 22.11 Release Notes (or backporting 22.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

The ConditionFileNotEmpty override patch wasn't correct for stage1, which
does have the modules in /lib. So, remove the patch and set
the right path with overrides in the final system.

Also, make sure systemd-tmpfiles-setup-dev is pulled in to create
all the necessary symlinks.
@K900 K900 requested a review from a team as a code owner July 22, 2022 07:03
@github-actions github-actions bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 6.topic: systemd Software suite that provides an array of system components for Linux operating systems. 8.has: module (update) This PR changes an existing module in `nixos/` labels Jul 22, 2022
@K900
Copy link
Contributor Author

K900 commented Jul 22, 2022

I'm not sure if the patch format change is a good idea, but it should reduce the diff noise next time the patchset is rebased.

@ofborg ofborg bot requested review from Mic92, flokli and kloenk July 22, 2022 07:12
@ofborg ofborg bot added 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. labels Jul 22, 2022
@arianvp
Copy link
Member

arianvp commented Jul 22, 2022

I'll let flokli decide about the patch format changes

# `git am path/to/00*.patch` them into a systemd worktree, rebase to the more recent
# systemd version, and export the patches again via `git -c format.signoff=false format-patch v${version}`.
# systemd version, and export the patches again via
# `git -c format.signoff=false format-patch v${version} --no-numbered --zero-commit --no-signature`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@flokli flokli merged commit ad29dc1 into NixOS:staging Jul 22, 2022
@K900 K900 deleted the systemd-initrd-fixes branch July 27, 2025 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 6.topic: systemd Software suite that provides an array of system components for Linux operating systems. 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants