Merge pull request #27117 from cjxgm/fix-nspawn-missing-suffix

systemd.nspawn: fix missing suffix
This commit is contained in:
Jörg Thalheim 2018-04-22 15:21:07 +01:00 committed by GitHub
commit fecda3498b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,7 +110,7 @@ in {
config =
let
units = mapAttrs' (n: v: nameValuePair "${n}.nspawn" (instanceToUnit n v)) cfg;
units = mapAttrs' (n: v: let nspawnFile = "${n}.nspawn"; in nameValuePair nspawnFile (instanceToUnit nspawnFile v)) cfg;
in mkIf (cfg != {}) {
environment.etc."systemd/nspawn".source = generateUnits "nspawn" units [] [];