diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2020-11-16 18:37:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-16 18:37:36 +0100 |
commit | e54cd0ef252fa4f9a1eab387fe4a3f8b10068122 (patch) | |
tree | 0d3053e18bb93cb9279951babe9c303377b2e447 /nixos/modules/tasks | |
parent | bb15fa742780543ef87df2e6ea7e1747eadfc82b (diff) | |
parent | 8ac3a1503af31ed444b6997ff9eea781c2507348 (diff) |
Merge pull request #103876 from Mic92/lvm-generator-fix
nixos/lvm2-activation-generator: fix warnings on activation
Diffstat (limited to 'nixos/modules/tasks')
-rw-r--r-- | nixos/modules/tasks/lvm.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/tasks/lvm.nix b/nixos/modules/tasks/lvm.nix index 2c3cc4c5467d..98a0e2ddef90 100644 --- a/nixos/modules/tasks/lvm.nix +++ b/nixos/modules/tasks/lvm.nix @@ -21,6 +21,10 @@ in { }; config = mkMerge [ + ({ + # minimal configuration file to make lvmconfig/lvm2-activation-generator happy + environment.etc."lvm/lvm.conf".text = "config {}"; + }) (mkIf (!config.boot.isContainer) { systemd.tmpfiles.packages = [ cfg.package.out ]; environment.systemPackages = [ cfg.package ]; |