File 0616-ifup.sh-several-fixes-for-dhcp-calls-with-multiple-n.patch of Package dracut.14855
From b2d7ded290e13d275301508b56a21817a2283cf3 Mon Sep 17 00:00:00 2001
From: Thomas Blume <Thomas.Blume@suse.com>
Date: Thu, 26 Sep 2019 14:32:25 +0200
Subject: [PATCH 1/3] ifup.sh: several fixes for dhcp calls with multiple nics
---
modules.d/40network/ifup.sh | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
Index: dracut-044/modules.d/40network/ifup.sh
===================================================================
--- dracut-044.orig/modules.d/40network/ifup.sh
+++ dracut-044/modules.d/40network/ifup.sh
@@ -600,11 +600,11 @@ if [ ! -e /tmp/net.${netif}.up ]; then
load_ipv6
do_dhcp -6
fi
- if getargs 'ip=dhcp'; then
+ if getargs 'ip=dhcp' && [ "$autoconf" != "dhcp" ]; then
do_dhcp -4
fi
fi
- if [ $? -eq 0 ]; then
+ if [ $? -eq 0 ] && [ -f /tmp/leaseinfo.${netif}* ]; then
bring_online
fi
fi