lxc-containers: wiggle dependency on network.target
This commit is contained in:
parent
54a061f565
commit
f173d13dd7
|
@ -115,7 +115,8 @@ in
|
||||||
|
|
||||||
systemd.services."lxc-rootfs@" = {
|
systemd.services."lxc-rootfs@" = {
|
||||||
description = "rootfs for '%i'";
|
description = "rootfs for '%i'";
|
||||||
wants = [ "nix-daemon.service" ];
|
requires = [ "nix-daemon.service" ];
|
||||||
|
after = [ "network.target" ];
|
||||||
path = [ config.nix.package pkgs.util-linux pkgs.git ];
|
path = [ config.nix.package pkgs.util-linux pkgs.git ];
|
||||||
scriptArgs = "%i";
|
scriptArgs = "%i";
|
||||||
script = ''
|
script = ''
|
||||||
|
@ -135,9 +136,8 @@ in
|
||||||
|
|
||||||
systemd.services."lxc@" = {
|
systemd.services."lxc@" = {
|
||||||
description = "LXC container '%i'";
|
description = "LXC container '%i'";
|
||||||
wants = [ "systemd-networkd.service" ];
|
|
||||||
requires = [ "lxc-rootfs@%i.service" ];
|
requires = [ "lxc-rootfs@%i.service" ];
|
||||||
after = [ "lxc-rootfs@%i.service" ];
|
after = [ "network.target" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
ExecStart =
|
ExecStart =
|
||||||
|
|
Loading…
Reference in New Issue