[arch-releng] [PATCH 1/2] [archiso_pxe_common] Add timeout to ipconfig call
From: David Thurstenson <thurstylark@gmail.com> Signed-off-by: David Thurstenson <thurstylark@gmail.com> --- archiso/initcpio/hooks/archiso_pxe_common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archiso/initcpio/hooks/archiso_pxe_common b/archiso/initcpio/hooks/archiso_pxe_common index 422e4f7..96a10c5 100644 --- a/archiso/initcpio/hooks/archiso_pxe_common +++ b/archiso/initcpio/hooks/archiso_pxe_common @@ -26,7 +26,7 @@ run_hook () { fi # setup network and save some values - if ! ipconfig "ip=${ip}"; then + if ! ipconfig -t 20 "ip=${ip}"; then echo "ERROR; Failed to configure network" echo " Falling back to interactive prompt" echo " You can try to fix the problem manually, log out when you are finished" -- 2.11.1
From: David Thurstenson <thurstylark@gmail.com> Signed-off-by: David Thurstenson <thurstylark@gmail.com> --- archiso/initcpio/hooks/archiso_pxe_common | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/archiso/initcpio/hooks/archiso_pxe_common b/archiso/initcpio/hooks/archiso_pxe_common index 96a10c5..2380ca3 100644 --- a/archiso/initcpio/hooks/archiso_pxe_common +++ b/archiso/initcpio/hooks/archiso_pxe_common @@ -22,7 +22,11 @@ run_hook () { break fi done - ip="${ip}::${bootif_dev}" + if [[ "${ip}" == "dhcp" ]]; then + ip=":::::${bootif_dev}:dhcp" + else + ip="${ip}::${bootif_dev}" + fi fi # setup network and save some values -- 2.11.1
participants (1)
-
thurstylark@gmail.com