[arch-releng] [PATCH 2/2] [archiso_pxe_common] Handle case where ip=dhcp

thurstylark at gmail.com thurstylark at gmail.com
Fri Mar 10 20:01:06 UTC 2017


From: David Thurstenson <thurstylark at gmail.com>

Signed-off-by: David Thurstenson <thurstylark at gmail.com>
---
 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
-- 
2.11.1


More information about the arch-releng mailing list