Browse Source

Add timeout to version check

As version check is not critical and more informational,
ensure it doesn't hang startup for a long period of time.
If unreachable, it will timeout and continue with boot.
Antony Messerli 5 years ago
parent
commit
369fd443c9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      roles/netbootxyz/templates/menu/menu.ipxe.j2

+ 1 - 1
roles/netbootxyz/templates/menu/menu.ipxe.j2

@@ -3,7 +3,7 @@
 :start
 chain --autofree boot.cfg ||
 echo Attempting to retrieve latest upstream version number...
-chain https://boot.netboot.xyz/version.ipxe ||
+chain --timeout 5 https://boot.netboot.xyz/version.ipxe ||
 ntp {{ time_server }} ||
 iseq ${cls} serial && goto ignore_cls ||
 set cls:hex 1b:5b:4a  # ANSI clear screen sequence - "^[[J"