From b1a397e98d944006abab4038ff526b75920f01b1 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 29 May 2015 15:51:14 +0200 Subject: launch interactive shell if ipconfig fails Signed-off-by: Christian Hesse --- archiso/initcpio/hooks/archiso_pxe_common | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'archiso/initcpio/hooks') diff --git a/archiso/initcpio/hooks/archiso_pxe_common b/archiso/initcpio/hooks/archiso_pxe_common index d8ac709..0ee33d0 100644 --- a/archiso/initcpio/hooks/archiso_pxe_common +++ b/archiso/initcpio/hooks/archiso_pxe_common @@ -25,7 +25,12 @@ run_hook () { fi # setup network and save some values - ipconfig "ip=${ip}" + if ! ipconfig "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" + launch_interactive_shell + fi . /tmp/net-*.conf -- cgit v1.2.3-70-g09d2