File 0314-nfs_do_not_pass_ifname_for_bonding_devices.patch of Package dracut.12460

Index: dracut-044/modules.d/95nfs/module-setup.sh
===================================================================
--- dracut-044.orig/modules.d/95nfs/module-setup.sh	2016-12-07 11:46:32.799438777 +0100
+++ dracut-044/modules.d/95nfs/module-setup.sh	2016-12-07 11:46:33.519479687 +0100
@@ -57,7 +57,10 @@ cmdline() {
         nfs_address=${lookup##* }
     fi
     ifname=$(ip -o route get to $nfs_address | sed -n 's/.*dev \([^ ]*\).*/\1/p')
-    if [ -e /sys/class/net/$ifname/address ] ; then
+    if [ -d /sys/class/net/$ifname/bonding ]; then
+        dinfo "Found bonded interface '${ifname}'. Make sure to provide an appropriate 'bond=' cmdline."
+        return
+    elif [ -e /sys/class/net/$ifname/address ] ; then
         ifmac=$(cat /sys/class/net/$ifname/address)
         printf 'ifname=%s:%s ' ${ifname} ${ifmac}
     fi