init-ifupdown: modify interfaces for busybox
PATCH 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
@@ -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 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.
--- .../init-ifupdown/init-ifupdown-1.0/qemuall/interfaces | 5 ----- meta/recipes-core/packagegroups/packagegroup-core-boot.bb | 4 +++- 2 files changed, 3 insertions(+), 6 deletions(-) delete mode 100644 meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemuall/interfaces
meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemuall/interfaces deleted +0 -5
@@ -1,5 +0,0 @@ -# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) - -# The loopback interface -auto lo -iface lo inet loopback
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
Re: [oe-core][PATCH 2/2] packagegroup-core-boot: recommend ifupdown
Quoted 19 lines · Joe Slater via lists.openembedded.org
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]>---
.../init-ifupdown/init-ifupdown-1.0/qemuall/interfaces | 5 ----- meta/recipes-core/packagegroups/packagegroup-core-boot.bb | 4 +++-2 files changed, 3 insertions(+), 6 deletions(-)delete mode 100644 meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemuall/interfaces
meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemuall/interfaces deleted +0
-0
meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemuall/interfaces line 5
Quoted 5 lines
meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemuall/interfaces deleted +0
-5@@ -1,5 +0,0 @@ -# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) - -# The loopback interface -auto lo -iface lo inet loopback
Is this patch meant to touch ifupdown as well as the packagegroup?
meta/recipes-core/packagegroups/packagegroup-core-boot.bb RDEPENDS:${PN} = "\ · line 42
Quoted 12 lines
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)} \ + "
Cheers,
Richard
Re: [oe-core][PATCH 2/2] packagegroup-core-boot: recommend ifupdown
Quoted 10 lines · Richard Purdie via lists.openembedded.org
meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemuall/interfaces line 5
Quoted 8 lines
meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemuall/interfaces deleted +0
-5@@ -1,5 +0,0 @@ -# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) - -# The loopback interface -auto lo -iface lo inet loopbackIs this patch meant to touch ifupdown as well as the packagegroup?
I suspect not, given that runqemu manually brings up network devices and the last thing we want is DHCP running again.
Joe, please remove this chunk.
Ross
RE: [oe-core][PATCH 2/2] packagegroup-core-boot: recommend ifupdown
Quoted 25 lines
-----Original Message-----
From: Ross Burton <[email protected]>
Sent: Thursday, April 11, 2024 7:21 AM
To: Richard Purdie <[email protected]>; Slater, Joseph <[email protected]>
Cc: OE-core <[email protected]>; MacLeod, Randy <[email protected]>
Subject: Re: [oe-core][PATCH 2/2] packagegroup-core-boot: recommend ifupdownQuoted 10 lines · Richard Purdie via lists.openembedded.org
meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemuall/interfaces line 5
Quoted 8 lines
meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemuall/interfaces deleted +0
-5@@ -1,5 +0,0 @@ -# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) - -# The loopback interface -auto lo -iface lo inet loopbackIs this patch meant to touch ifupdown as well as the packagegroup?
Quoted 4 lines
I suspect not, given that runqemu manually brings up network devices and the last thing we want is DHCP running again.
Joe, please remove this chunk.
This was accidental since I removed the qemuall/interfaces in order to use the main one with qemu. I'm sending new patches. Maybe, though, we don't really need the qemuall stuff.
Joe
Quoted 2 lines
Ross
Re: [oe-core][PATCH 2/2] packagegroup-core-boot: recommend ifupdown
Quoted 1 line · Joe Slater via lists.openembedded.org
This was accidental since I removed the qemuall/interfaces in order to use the main one with qemu. I'm sending new patches. Maybe, though, we don't really need the qemuall stuff.
The last time I looked we did need it, because testimage will manually setup the network interface with known IPs via kernel parameters. The last thing we need is for ifupdown to decide to take over the interface and reconfigure it.
Ross
Re: [oe-core][PATCH 2/2] packagegroup-core-boot: recommend ifupdown
In reply to Slater, JosephQuoted 25 lines · Joe Slater via lists.openembedded.org
Quoted 25 lines
-----Original Message-----
From: Ross Burton <[email protected]>
Sent: Thursday, April 11, 2024 7:21 AM
To: Richard Purdie <[email protected]>; Slater, Joseph <[email protected]>
Cc: OE-core <[email protected]>; MacLeod, Randy <[email protected]>
Subject: Re: [oe-core][PATCH 2/2] packagegroup-core-boot: recommend ifupdownQuoted 10 lines · Richard Purdie via lists.openembedded.org
meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemuall/interfaces line 5
Quoted 8 lines
meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemuall/interfaces deleted +0
-5@@ -1,5 +0,0 @@ -# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) - -# The loopback interface -auto lo -iface lo inet loopbackIs this patch meant to touch ifupdown as well as the packagegroup?
Quoted 6 lines
Quoted 4 lines
I suspect not, given that runqemu manually brings up network devices and the last thing we want is DHCP running again.
Joe, please remove this chunk.
This was accidental since I removed the qemuall/interfaces in order to use the main one with qemu. I'm sending new patches. Maybe, though, we don't really need the qemuall stuff.
This broke all the tests of this build:
https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/6786
Quoted 14 lines
Joe
Quoted 2 lines
Ross
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#198136): https://lists.openembedded.org/g/openembedded-core/message/198136
Mute This Topic: https://lists.openembedded.org/mt/105454861/3617179
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
RE: [oe-core][PATCH 2/2] packagegroup-core-boot: recommend ifupdown
Quoted 47 lines
-----Original Message-----
From: Alexandre Belloni <[email protected]>
Sent: Friday, April 12, 2024 3:22 AM
To: Slater, Joseph <[email protected]>
Cc: Ross Burton <[email protected]>; Richard Purdie <[email protected]>; OE-core <openembedded- [email protected]>; MacLeod, Randy <[email protected]>
Subject: Re: [oe-core][PATCH 2/2] packagegroup-core-boot: recommend ifupdownQuoted 33 lines · Joe Slater via lists.openembedded.org
Quoted 32 lines
-----Original Message-----
From: Ross Burton <[email protected]>
Sent: Thursday, April 11, 2024 7:21 AM
To: Richard Purdie <[email protected]>; Slater, Joseph <[email protected]>
Cc: OE-core <[email protected]>; MacLeod, Randy <[email protected]>
Subject: Re: [oe-core][PATCH 2/2] packagegroup-core-boot: recommend ifupdownQuoted 5 lines · Richard Purdie via lists.openembedded.org
Quoted 5 lines
---
a/meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemuall/inter faces
+++/dev/null(quoted diff) +0
-0@@ -1,5 +0,0 @@Quoted 8 lines
meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemuall/interfaces line 5
Quoted 6 lines
(quoted diff) +0
-1-# /etc/network/interfaces -- configuration file for ifup(8),ifdown(8)
meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemuall/interfaces deleted +0
-4- -# The loopback interface -auto lo -iface lo inet loopbackIs this patch meant to touch ifupdown as well as the packagegroup?
I suspect not, given that runqemu manually brings up network devices and the last thing we want is DHCP running again.
Joe, please remove this chunk.
Quoted 7 lines
Quoted 1 line
This was accidental since I removed the qemuall/interfaces in order to use the
main one with qemu. I'm sending new patches. Maybe, though, we don't really need the qemuall stuff.
This broke all the tests of this build:
https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/6786
The V2 patch doesn't change the interfaces file and should not cause any issues.
Joe
Quoted 22 lines
Quoted 7 lines
Joe
Quoted 2 lines
Ross
Quoted 10 lines
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#198136):
https://lists.openembedded.org/g/openembedded-core/message/198136
Mute This Topic: https://lists.openembedded.org/mt/105454861/3617179
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=---
Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com