fix(ap01): fix _one_ race condition when bridging the LAN
Some checks failed
Check meta / check_meta (pull_request) Failing after 17s
lint / check (push) Successful in 28s
build configuration / build_compute01 (pull_request) Failing after 43s
build configuration / build_storage01 (pull_request) Failing after 43s
build configuration / build_vault01 (pull_request) Failing after 45s
build configuration / build_web01 (pull_request) Failing after 34s
Check meta / check_dns (pull_request) Failing after 1m3s
build configuration / build_web02 (pull_request) Failing after 41s
build configuration / build_rescue01 (pull_request) Failing after 41s
build configuration / push_to_cache (pull_request) Has been skipped

The remaining is hostapd notification that the WLAN interface is ready
to bridge.

Signed-off-by: Ryan Lahfa <ryan@dgnum.eu>
This commit is contained in:
Ryan Lahfa 2024-09-05 14:59:16 +02:00
parent 994e593d3b
commit 9bf83a60fe
2 changed files with 11 additions and 8 deletions

View file

@ -119,11 +119,14 @@ rec {
services.bridge = svc.bridge.members.build { services.bridge = svc.bridge.members.build {
primary = services.int; primary = services.int;
members = with config.hardware.networkInterfaces; [ members = {
lan lan.member = config.hardware.networkInterfaces.lan;
# wlan0 wlan1 = {
wlan1 member = config.hardware.networkInterfaces.wlan1;
]; # Bridge only once hostapd is ready.
dependencies = [ config.services.hostap-2 ];
};
};
}; };
services.resolvconf = oneshot rec { services.resolvconf = oneshot rec {
@ -152,7 +155,7 @@ rec {
interface = config.services.int; interface = config.services.int;
dependencies = [ dependencies = [
config.services.hostname config.services.hostname
config.services.bridge config.services.bridge.components.lan
]; ];
}; };

View file

@ -86,9 +86,9 @@
"url": "https://git.dgnum.eu/DGNum/liminix.git" "url": "https://git.dgnum.eu/DGNum/liminix.git"
}, },
"branch": "main", "branch": "main",
"revision": "4ff772639f9bb5d079a50b2b69f3ddc9053f2e9a", "revision": "0fb671023c0571d936a568721c67819a23cf63c0",
"url": null, "url": null,
"hash": "1jh2115ajh26362fazkmyhvv6zvp5z3yjynl91kgsvvld936169c" "hash": "0d7hyl89049flqvxzpvj938ma30fi3y58y4z6gjj2038v2vsd2f1"
}, },
"linkal": { "linkal": {
"type": "Git", "type": "Git",