about summary refs log tree commit diff
path: root/nixos/modules/system
diff options
context:
space:
mode:
authorWill Fancher <elvishjerricco@gmail.com>2024-01-16 15:40:19 -0500
committerGitHub <noreply@github.com>2024-01-16 15:40:19 -0500
commit66e3ec7d3024ba4a30b0f07d7956a85b0093ffc6 (patch)
tree9b9d39d2a05f795d140abe59ed0ffd055dd1f51a /nixos/modules/system
parent5df0c94c5ed9c4b9664d63047f2f3a7f93c0bb43 (diff)
parent1dad7f68219c6097d9897fef26287796ad66c2f2 (diff)
downloadnixlib-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.nix3
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"