nixos/lvm2-activation-generator: fix warnings on activation

This commit is contained in:
Jörg Thalheim 2020-11-14 14:40:32 +01:00
parent 9fa62187fe
commit 8ac3a1503a
No known key found for this signature in database
GPG key ID: 003F2096411B5F92

View file

@ -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 ];