kexec-installer: use camel case for service names
This commit is contained in:
parent
209b1d9ee6
commit
1fde0cda9e
2 changed files with 4 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
{ config, lib, modulesPath, pkgs, ... }:
|
{ config, lib, modulesPath, pkgs, ... }:
|
||||||
let
|
let
|
||||||
restoreNetwork = pkgs.writers.writePython3 "restore-network" {
|
restore-network = pkgs.writers.writePython3 "restore-network" {
|
||||||
flakeIgnore = ["E501"];
|
flakeIgnore = ["E501"];
|
||||||
} ./restore_routes.py;
|
} ./restore_routes.py;
|
||||||
|
|
||||||
|
@ -106,7 +106,7 @@ in {
|
||||||
pkgs.jq
|
pkgs.jq
|
||||||
];
|
];
|
||||||
|
|
||||||
systemd.services.restoreNetwork = {
|
systemd.services.restore-network = {
|
||||||
before = [ "network-pre.target" ];
|
before = [ "network-pre.target" ];
|
||||||
wants = [ "network-pre.target" ];
|
wants = [ "network-pre.target" ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
@ -115,7 +115,7 @@ in {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
RemainAfterExit = true;
|
RemainAfterExit = true;
|
||||||
ExecStart = [
|
ExecStart = [
|
||||||
"${restoreNetwork} /root/network/addrs.json /root/network/routes-v4.json /root/network/routes-v6.json /etc/systemd/network"
|
"${restore-network} /root/network/addrs.json /root/network/routes-v4.json /root/network/routes-v6.json /etc/systemd/network"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -156,7 +156,7 @@ in makeTest' {
|
||||||
assert root_ed25519_before == root_ed25519_after, f"{root_ed25519_before} != {root_ed25519_after}"
|
assert root_ed25519_before == root_ed25519_after, f"{root_ed25519_before} != {root_ed25519_after}"
|
||||||
|
|
||||||
# See if we can reach the router after kexec
|
# See if we can reach the router after kexec
|
||||||
node1.wait_for_unit("restoreNetwork.service")
|
node1.wait_for_unit("restore-network.service")
|
||||||
node1.wait_until_succeeds("cat /etc/systemd/network/eth1.network >&2")
|
node1.wait_until_succeeds("cat /etc/systemd/network/eth1.network >&2")
|
||||||
node1.wait_until_succeeds("ping -c1 10.0.0.1")
|
node1.wait_until_succeeds("ping -c1 10.0.0.1")
|
||||||
node1.wait_until_succeeds("ping -c1 2001:db8::1")
|
node1.wait_until_succeeds("ping -c1 2001:db8::1")
|
||||||
|
|
Loading…
Reference in a new issue