Merge pull request #103876 from Mic92/lvm-generator-fix

nixos/lvm2-activation-generator: fix warnings on activation
This commit is contained in:
Jörg Thalheim 2020-11-16 18:37:36 +01:00 committed by GitHub
commit e54cd0ef25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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