Blame SOURCES/rear-bz1653214.patch

f25f8e
diff --git a/usr/share/rear/rescue/GNU/Linux/310_network_devices.sh b/usr/share/rear/rescue/GNU/Linux/310_network_devices.sh
f25f8e
index 4698618c..6b3194bd 100644
f25f8e
--- a/usr/share/rear/rescue/GNU/Linux/310_network_devices.sh
f25f8e
+++ b/usr/share/rear/rescue/GNU/Linux/310_network_devices.sh
f25f8e
@@ -854,7 +854,11 @@ function handle_physdev () {
f25f8e
 
f25f8e
     DebugPrint "$network_interface is a physical device"
f25f8e
 
f25f8e
-    mac="$( cat $sysfspath/address )" || BugError "Could not read a MAC address for '$network_interface'."
f25f8e
+    if [ -e $sysfspath/bonding_slave/perm_hwaddr ] ; then
f25f8e
+        mac="$( cat $sysfspath/bonding_slave/perm_hwaddr )"
f25f8e
+    else
f25f8e
+        mac="$( cat $sysfspath/address )" || BugError "Could not read a MAC address for '$network_interface'."
f25f8e
+    fi
f25f8e
     # Skip fake interfaces without MAC address
f25f8e
     [ "$mac" != "00:00:00:00:00:00" ] || return $rc_error
f25f8e