diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2020-11-14 14:40:32 +0100 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2020-11-15 08:06:05 +0100 |
commit | 8ac3a1503af31ed444b6997ff9eea781c2507348 (patch) | |
tree | 43a23213cd819e550f62071d21b64e2658bc91a4 /nixos/modules/tasks/lvm.nix | |
parent | 9fa62187fe5890d7b4419ab806036c6ea2729496 (diff) | |
download | nixpkgs-8ac3a1503af31ed444b6997ff9eea781c2507348.tar nixpkgs-8ac3a1503af31ed444b6997ff9eea781c2507348.tar.gz nixpkgs-8ac3a1503af31ed444b6997ff9eea781c2507348.tar.bz2 nixpkgs-8ac3a1503af31ed444b6997ff9eea781c2507348.tar.lz nixpkgs-8ac3a1503af31ed444b6997ff9eea781c2507348.tar.xz nixpkgs-8ac3a1503af31ed444b6997ff9eea781c2507348.tar.zst nixpkgs-8ac3a1503af31ed444b6997ff9eea781c2507348.zip |
nixos/lvm2-activation-generator: fix warnings on activation
Diffstat (limited to 'nixos/modules/tasks/lvm.nix')
-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 2c3cc4c5467..98a0e2ddef9 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 ]; |