diff --git a/README.md b/README.md index bb0bd5c..79f0e3d 100644 --- a/README.md +++ b/README.md @@ -191,11 +191,25 @@ Doit finir en "success". Première fois : plusieurs minutes. sudo systemctl status dnsmasq caddy ls /var/lib/tftpboot ls /var/www/pxe -curl -I http:///netboot.ipxe +curl -I http://192.168.1.10/netboot.ipxe # remplacer par le vrai serverIp ``` Tout doit répondre sans erreur. +Si `curl` reste bloqué : l'IP statique de l'interface PXE ne s'est peut-être pas appliquée toute seule au premier `switch` (connu, arrive parfois sur une install neuve). Vérifier : + +```bash +ip a show # cherche une ligne "inet /24" +``` + +Absente → forcer manuellement une fois : + +```bash +sudo systemctl start network-addresses-.service +``` + +Un reboot du serveur applique aussi ça correctement au démarrage suivant. + ## Étape 8 — Tester sur 1 PC Démarrer un seul PC en PXE. diff --git a/pxe-server/configuration.nix b/pxe-server/configuration.nix index ade355e..cad86c6 100644 --- a/pxe-server/configuration.nix +++ b/pxe-server/configuration.nix @@ -124,6 +124,10 @@ in config.nix.package pkgs.git ]; + # Sans ça, le timer quotidien pourrait se déclencher avant que le + # réseau soit prêt après un reboot, et échouer sur le fetch git. + after = [ "network-online.target" ]; + wants = [ "network-online.target" ]; script = '' set -euo pipefail kernel=$(nix build --no-link --no-write-lock-file --refresh --print-out-paths "${fleetRepo}#nixosConfigurations.installer-netboot.config.system.build.kernel")