summaryrefslogtreecommitdiff
path: root/archiso
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2015-05-29 15:51:14 +0200
committerGerardo Exequiel Pozzi <vmlinuz386@gmail.com>2015-05-29 13:10:42 -0300
commitb1a397e98d944006abab4038ff526b75920f01b1 (patch)
tree90bd186634c06bb1aca97d1744afd6ead31ed829 /archiso
parentb1011376cf41314d754e846712e4bafb70ff56da (diff)
downloadarchiso32-b1a397e98d944006abab4038ff526b75920f01b1.tar.xz
launch interactive shell if ipconfig fails
Signed-off-by: Christian Hesse <mail@eworm.de>
Diffstat (limited to 'archiso')
-rw-r--r--archiso/initcpio/hooks/archiso_pxe_common7
1 files changed, 6 insertions, 1 deletions
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