mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/{bcache,lvm}: enable when using systemd in stage 1 initrd (#343760)
This commit is contained in:
commit
cb9ac608fc
2 changed files with 4 additions and 0 deletions
|
@ -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 [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue