init-ifupdown: modify interfaces for busybox
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.
Signed-off-by Joe Slater <[email protected]>
--- 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
@@ -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
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.
Signed-off-by Joe Slater <[email protected]>
--- 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
@@ -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