From 8afbf3d5e8968e21915feec812800b002d3a4bf1 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Fri, 10 Mar 2017 14:01:06 -0600 Subject: Handle case where ip=dhcp Signed-off-by: David Thurstenson --- hooks/archiso_pxe_common | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'hooks') diff --git a/hooks/archiso_pxe_common b/hooks/archiso_pxe_common index 96a10c5..2380ca3 100644 --- a/hooks/archiso_pxe_common +++ b/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 -- cgit v1.2.3-70-g09d2