From 3fec50122543908a744c200e0bdfb3ceab6331a7 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Fri, 10 Mar 2017 14:01:06 -0600 Subject: [PATCH] Handle case where ip=dhcp Signed-off-by: David Thurstenson --- 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