-
-
Notifications
You must be signed in to change notification settings - Fork 19.8k
initrd: Opt-in bare bones systemd-based initrd #164943
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
dasJ
merged 20 commits into
NixOS:master
from
ElvishJerricco:systemd-initrd-reuse-systemd-module
Apr 3, 2022
Merged
Changes from 11 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
52c98fc
nixos: systemd: Split unit types into separate module
ElvishJerricco d193ef8
make-initrd-ng: init
ElvishJerricco 2511374
nixos: systemd-lib: Make generateUnits general with default args
ElvishJerricco 2d4ebf1
initrd: Optional systemd-based initrd
ElvishJerricco be10e86
systemd-initrd: Partially fix qemu-vm
ElvishJerricco 1abf154
systemd-initrd: Add PATH to everything
ElvishJerricco 213de9b
systemd-initrd: autoFormat and autoResize in initrd
ElvishJerricco 3365666
systemd-initrd: Basic test case
ElvishJerricco 9828446
systemd-initrd: Fix Environment= and PATH
ElvishJerricco 2431347
systemd-initrd: Test autoResize
ElvishJerricco 5bfe213
Clarify suppressed units description
ElvishJerricco 76d05df
fakeNss: move to toplevel
flokli 74bae06
systemd-initrd: use pkgs.fakeNss, document why we need libnss_files.so
flokli e3083de
systemd-initrd, systemd-lib: drop initrdServiceToUnit
flokli fc91cdb
nixos/lib/systemd-lib.nix: move comment back down to packages
flokli 1e5261f
nixos/systemd-lib: Use module composition
dasJ b7c62b8
nixos/systemd-initrd: Remove unit options that don't work
dasJ c465c8d
nixos/systemd-initrd: Make emergency access more flexible
dasJ 5653209
nixos/systemd-initrd: Redo object specifications
dasJ 7ebb4eb
nixos/systemd-stage-1: Append (Initrd) to /etc/initrd-release
dasJ File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| { lib, systemdUtils }: | ||
|
|
||
| with systemdUtils.lib; | ||
| with systemdUtils.unitOptions; | ||
| with lib; | ||
|
|
||
| rec { | ||
| units = with types; | ||
| attrsOf (submodule ({ name, config, ... }: { | ||
| options = concreteUnitOptions; | ||
| config = { unit = mkDefault (systemdUtils.lib.makeUnit name config); }; | ||
| })); | ||
|
|
||
| services = with types; attrsOf (submodule [ { options = serviceOptions; } unitConfig serviceConfig ]); | ||
| initrdServices = with types; attrsOf (submodule [ { options = serviceOptions; } unitConfig initrdServiceConfig ]); | ||
|
dasJ marked this conversation as resolved.
Outdated
|
||
|
|
||
| targets = with types; attrsOf (submodule [ { options = targetOptions; } unitConfig ]); | ||
|
|
||
| sockets = with types; attrsOf (submodule [ { options = socketOptions; } unitConfig ]); | ||
|
|
||
| timers = with types; attrsOf (submodule [ { options = timerOptions; } unitConfig ]); | ||
|
|
||
| paths = with types; attrsOf (submodule [ { options = pathOptions; } unitConfig ]); | ||
|
|
||
| slices = with types; attrsOf (submodule [ { options = sliceOptions; } unitConfig ]); | ||
|
|
||
| mounts = with types; listOf (submodule [ { options = mountOptions; } unitConfig mountConfig ]); | ||
|
|
||
| automounts = with types; listOf (submodule [ { options = automountOptions; } unitConfig automountConfig ]); | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -197,5 +197,6 @@ rec { | |||||||||||||
| systemdUtils = { | ||||||||||||||
| lib = import ./systemd-lib.nix { inherit lib config pkgs; }; | ||||||||||||||
| unitOptions = import ./systemd-unit-options.nix { inherit lib systemdUtils; }; | ||||||||||||||
| types = import ./systemd-types.nix { inherit lib systemdUtils; }; | ||||||||||||||
|
Comment on lines
198
to
+200
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Maybe? I am not sure. Just an idea. |
||||||||||||||
| }; | ||||||||||||||
| } | ||||||||||||||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.