Merge pull request #278895 from jmbaur/repart-initrd-loopback

nixos/repart: add loop module to initrd
This commit is contained in:
Will Fancher 2024-01-16 15:40:19 -05:00 committed by GitHub
commit 66e3ec7d30
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"