From: Christian Hesse <[email protected]>

Signed-off-by: Christian Hesse <[email protected]>
---
 archiso/initcpio/hooks/archiso_pxe_common | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/archiso/initcpio/hooks/archiso_pxe_common 
b/archiso/initcpio/hooks/archiso_pxe_common
index cedf585..adadefc 100644
--- a/archiso/initcpio/hooks/archiso_pxe_common
+++ b/archiso/initcpio/hooks/archiso_pxe_common
@@ -39,6 +39,12 @@ run_hook () {
 
         pxeserver=${ROOTSERVER}
 
+       # If neither BOOTIF nor bootif_mac have been set from bootloader we do
+       # not know the boot interface, yet. Get it from ipconfig output now.
+       if [[ -z "${bootif_dev}" ]]; then
+               bootif_dev="${DEVICE}"
+       fi
+
         # setup DNS resolver
         if [[ "${IPV4DNS0}" != "0.0.0.0" ]]; then
             echo "nameserver ${IPV4DNS0}" > /etc/resolv.conf
-- 
2.8.3

Reply via email to