diff options
author | Will Fancher <elvishjerricco@gmail.com> | 2024-01-16 15:40:19 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-16 15:40:19 -0500 |
commit | 66e3ec7d3024ba4a30b0f07d7956a85b0093ffc6 (patch) | |
tree | 9b9d39d2a05f795d140abe59ed0ffd055dd1f51a /nixos/modules/system | |
parent | 5df0c94c5ed9c4b9664d63047f2f3a7f93c0bb43 (diff) | |
parent | 1dad7f68219c6097d9897fef26287796ad66c2f2 (diff) | |
download | nixlib-66e3ec7d3024ba4a30b0f07d7956a85b0093ffc6.tar nixlib-66e3ec7d3024ba4a30b0f07d7956a85b0093ffc6.tar.gz nixlib-66e3ec7d3024ba4a30b0f07d7956a85b0093ffc6.tar.bz2 nixlib-66e3ec7d3024ba4a30b0f07d7956a85b0093ffc6.tar.lz nixlib-66e3ec7d3024ba4a30b0f07d7956a85b0093ffc6.tar.xz nixlib-66e3ec7d3024ba4a30b0f07d7956a85b0093ffc6.tar.zst nixlib-66e3ec7d3024ba4a30b0f07d7956a85b0093ffc6.zip |
Merge pull request #278895 from jmbaur/repart-initrd-loopback
nixos/repart: add loop module to initrd
Diffstat (limited to 'nixos/modules/system')
-rw-r--r-- | nixos/modules/system/boot/systemd/repart.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/systemd/repart.nix b/nixos/modules/system/boot/systemd/repart.nix index 5ac2ace56ba0..3be744acd0b3 100644 --- a/nixos/modules/system/boot/systemd/repart.nix +++ b/nixos/modules/system/boot/systemd/repart.nix @@ -83,6 +83,9 @@ in } ]; + # systemd-repart uses loopback devices for partition creation + boot.initrd.availableKernelModules = lib.optional initrdCfg.enable "loop"; + boot.initrd.systemd = lib.mkIf initrdCfg.enable { additionalUpstreamUnits = [ "systemd-repart.service" |