Allow dashes in container names

This commit is contained in:
Eelco Dolstra 2014-03-20 15:09:38 +01:00
parent ba88db3cd3
commit 29c469b88d

View file

@ -143,13 +143,13 @@ in
config = {
systemd.services."container@" =
{ description = "Container '%I'";
{ description = "Container '%i'";
unitConfig.RequiresMountsFor = [ "/var/lib/containers/%I" ];
unitConfig.RequiresMountsFor = [ "/var/lib/containers/%i" ];
path = [ pkgs.iproute ];
environment.INSTANCE = "%I";
environment.INSTANCE = "%i";
script =
''