nixos/{bcache,lvm}: enable when using systemd in stage 1 initrd (#343760)
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 [
|
||||
|
||||
Reference in New Issue
Block a user