diag(pxe-infra): print iPXE network state in autoexec (T24 diagnosis)
test-runner / smoke (push) Successful in 1s
test-runner / smoke (push) Successful in 1s
This commit is contained in:
1 parent
46cac7acf2
commit
a49916549f
1 file changed
+7
@@ -159,6 +159,13 @@
|
||||
# before even reaching boot.ipxe.
|
||||
environment.etc."pxe-infra/tftpboot/autoexec.ipxe".source = pkgs.writeText "autoexec.ipxe" ''
|
||||
#!ipxe
|
||||
echo === ifstat ===
|
||||
ifstat
|
||||
echo === route ===
|
||||
route
|
||||
echo === ping ===
|
||||
ping --count=2 ${config.pxe-infra.bridge.address} || echo PING_FAILED
|
||||
echo === chain ===
|
||||
chain http://${config.pxe-infra.bridge.address}/${
|
||||
if config.pxe-infra.bootloader.bypassFallback.enable then "boot-bypass.ipxe" else "boot.ipxe"
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user