Unverified Commit cb9ac608 authored by Masum Reza's avatar Masum Reza Committed by GitHub
Browse files

nixos/{bcache,lvm}: enable when using systemd in stage 1 initrd (#343760)

parents 83965777 468a6cbb
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -11,6 +11,8 @@ in {

      Whether to enable bcache support in the initrd.
    '';
    default = config.boot.initrd.systemd.enable && config.boot.bcache.enable;
    defaultText = lib.literalExpression "config.boot.initrd.systemd.enable && config.boot.bcache.enable";
  };

  config = lib.mkIf cfg.enable {
+2 −0
Original line number Diff line number Diff line
@@ -31,6 +31,8 @@ in {

      Whether to enable booting from LVM2 in the initrd.
    '';
    default = config.boot.initrd.systemd.enable && config.services.lvm.enable;
    defaultText = lib.literalExpression "config.boot.initrd.systemd.enable && config.services.lvm.enable";
  };

  config = mkMerge [