summaryrefslogtreecommitdiff
path: root/archiso/initcpio
diff options
context:
space:
mode:
authorDavid Thurstenson <thurstylark@gmail.com>2017-03-10 14:01:06 -0600
committerGerardo Exequiel Pozzi <vmlinuz386@gmail.com>2017-03-14 11:12:29 -0300
commit3fec50122543908a744c200e0bdfb3ceab6331a7 (patch)
tree58def0f3bec636e097860541b64100cb0163acbc /archiso/initcpio
parentae854ed712d15559a02600d25f3919ddc96b8d42 (diff)
downloadarchiso32-3fec50122543908a744c200e0bdfb3ceab6331a7.tar.xz
Handle case where ip=dhcpupstreamMaster
Signed-off-by: David Thurstenson <thurstylark@gmail.com>
Diffstat (limited to 'archiso/initcpio')
-rw-r--r--archiso/initcpio/hooks/archiso_pxe_common6
1 files changed, 5 insertions, 1 deletions
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