Skip to contentSkip to conversation

init-ifupdown: modify interfaces for busybox

PATCH New [email protected] 1 participant 2 messages Apr 11, 2024

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 init-ifupdown: modify interfaces for busybox

From: Joe Slater <[email protected]>

Busybox ifupdown does not recognize /xxx names, so we use eth0 instead of /eth0. If we want to find "predictable name" interfaces starting with en..., we will have to use the real ifupdown.

---
 meta/recipes-core/init-ifupdown/init-ifupdown-1.0/interfaces | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/recipes-core/init-ifupdown/init-ifupdown-1.0/interfaces +2 -1
index e617fcf69b..3d0f0c6768 100644
@@ -14,10 +14,11 @@ iface wlan0 inet dhcp
 iface atml0 inet dhcp
 
 # Wired or wireless interfaces including predictable names
-auto /eth0
+auto eth0
 iface eth0 inet dhcp
 iface eth1 inet dhcp
 
+# Busybox ifupdown won't process /en* correctly
 auto /en*=eth
 iface eth inet dhcp
 
Signature · 1 line
2.25.1
#1 lore raw

PATCH v2 2/2 packagegroup-core-boot: recommend ifupdown

From: Joe Slater <[email protected]>

If the distro features sysvinit and pni-names are enabled, RRECOMMENDS ifupdown because busybox ifupdown will not initialize the renamed interfaces.

---
 meta/recipes-core/packagegroups/packagegroup-core-boot.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta/recipes-core/packagegroups/packagegroup-core-boot.bb +3 -1
index d96d2f5fff..fecc3334ea 100644
@@ -37,4 +37,6 @@ RDEPENDS:${PN} = "\
 RRECOMMENDS:${PN} = "\
     ${VIRTUAL-RUNTIME_base-utils-syslog} \
     ${MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS} \
-    ${@bb.utils.contains("DISTRO_FEATURES", "sysvinit", "init-ifupdown", "", d)}"
+    ${@bb.utils.contains("DISTRO_FEATURES", "sysvinit", "init-ifupdown", "", d)} \
+    ${@bb.utils.contains("DISTRO_FEATURES", "sysvinit pni-names", "ifupdown", "", d)} \
+    "
Signature · 1 line
2.25.1