浏览代码

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 年之前
父节点
当前提交
369fd443c9
共有 1 个文件被更改,包括 1 次插入1 次删除
  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"