* [oe-core][PATCH 1/1] init-ifupdown: add predictable interface names
@ 2024-01-10 21:10 joe.slater
2024-04-10 13:41 ` Ross Burton
0 siblings, 1 reply; 7+ messages in thread
From: joe.slater @ 2024-01-10 21:10 UTC (permalink / raw)
To: openembedded-core; +Cc: joe.slater, randy.macleod
From: Joe Slater <joe.slater@windriver.com>
Use a pattern to initialize interfaces which start
with 'en'. Also, make 'eth0' a pattern so that we
do not see an initialization error if it has been
renamed.
Signed-off-by: Joe Slater <joe.slater@windriver.com>
---
.../init-ifupdown/init-ifupdown-1.0/interfaces | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-core/init-ifupdown/init-ifupdown-1.0/interfaces b/meta/recipes-core/init-ifupdown/init-ifupdown-1.0/interfaces
index 0acf4cf441..e617fcf69b 100644
--- a/meta/recipes-core/init-ifupdown/init-ifupdown-1.0/interfaces
+++ b/meta/recipes-core/init-ifupdown/init-ifupdown-1.0/interfaces
@@ -13,11 +13,14 @@ iface wlan0 inet dhcp
iface atml0 inet dhcp
-# Wired or wireless interfaces
-auto eth0
+# Wired or wireless interfaces including predictable names
+auto /eth0
iface eth0 inet dhcp
iface eth1 inet dhcp
+auto /en*=eth
+iface eth inet dhcp
+
# Ethernet/RNDIS gadget (g_ether)
# ... or on host side, usbnet and random hwaddr
iface usb0 inet static
--
2.25.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [oe-core][PATCH 1/1] init-ifupdown: add predictable interface names
2024-01-10 21:10 [oe-core][PATCH 1/1] init-ifupdown: add predictable interface names joe.slater
@ 2024-04-10 13:41 ` Ross Burton
2024-04-10 17:29 ` Richard Purdie
0 siblings, 1 reply; 7+ messages in thread
From: Ross Burton @ 2024-04-10 13:41 UTC (permalink / raw)
To: joe.slater; +Cc: openembedded-core, randy.macleod
On 10 Jan 2024, at 21:10, Joe Slater via lists.openembedded.org <joe.slater=windriver.com@lists.openembedded.org> wrote:
> -# Wired or wireless interfaces
> -auto eth0
> +# Wired or wireless interfaces including predictable names
> +auto /eth0
Obviously we’re days away from release but I think we need to revert or rewrite this.
The /name syntax is specific to “proper” ifupdown, so any system which uses busybox’s ifupdown will fail to have functional networking. We don’t see this on the AB because there is a separate interfaces file for the qemuall override, this file is only used in non-qemu situations.
Ross
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [oe-core][PATCH 1/1] init-ifupdown: add predictable interface names
2024-04-10 13:41 ` Ross Burton
@ 2024-04-10 17:29 ` Richard Purdie
2024-04-10 18:18 ` Alexander Kanavin
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Richard Purdie @ 2024-04-10 17:29 UTC (permalink / raw)
To: Ross Burton, joe.slater; +Cc: openembedded-core, randy.macleod
On Wed, 2024-04-10 at 13:41 +0000, Ross Burton wrote:
> On 10 Jan 2024, at 21:10, Joe Slater via lists.openembedded.org
> <joe.slater=windriver.com@lists.openembedded.org> wrote:
> > -# Wired or wireless interfaces
> > -auto eth0
> > +# Wired or wireless interfaces including predictable names
> > +auto /eth0
>
> Obviously we’re days away from release but I think we need to revert
> or rewrite this.
>
> The /name syntax is specific to “proper” ifupdown, so any system
> which uses busybox’s ifupdown will fail to have functional
> networking. We don’t see this on the AB because there is a separate
> interfaces file for the qemuall override, this file is only used in
> non-qemu situations.
I'm worried about the number of other changes over the last few months
that are related to this so a simple revert might not get us to a good
place.
I'd like to see a patch proposal on what we should do. Time is short as
testing changes takes time and we're now a bit behind already :/.
So specific proposals welcome.
Cheers,
Richard
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [oe-core][PATCH 1/1] init-ifupdown: add predictable interface names
2024-04-10 17:29 ` Richard Purdie
@ 2024-04-10 18:18 ` Alexander Kanavin
2024-04-10 19:29 ` Slater, Joseph
[not found] ` <17C501F6F3FE569C.18172@lists.openembedded.org>
2 siblings, 0 replies; 7+ messages in thread
From: Alexander Kanavin @ 2024-04-10 18:18 UTC (permalink / raw)
To: Richard Purdie; +Cc: Ross Burton, joe.slater, openembedded-core, randy.macleod
On Wed, 10 Apr 2024 at 19:29, Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
> I'd like to see a patch proposal on what we should do. Time is short as
> testing changes takes time and we're now a bit behind already :/.
>
> So specific proposals welcome.
If no one comes out with a better proposal, I'd suggest reverting the
top five commts, all of them:
https://git.yoctoproject.org/poky/log/?qt=author&q=slater
Alex
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: [oe-core][PATCH 1/1] init-ifupdown: add predictable interface names
2024-04-10 17:29 ` Richard Purdie
2024-04-10 18:18 ` Alexander Kanavin
@ 2024-04-10 19:29 ` Slater, Joseph
[not found] ` <17C501F6F3FE569C.18172@lists.openembedded.org>
2 siblings, 0 replies; 7+ messages in thread
From: Slater, Joseph @ 2024-04-10 19:29 UTC (permalink / raw)
To: Richard Purdie, Ross Burton; +Cc: openembedded-core, MacLeod, Randy
The easiest thing to do is to change "auto /eth0" back to "auto eth0". This lets bitbake's ifupdown initialize eth0 and also allows the real ifupdown to initialize en* interfaces if they exist.
Joe
> -----Original Message-----
> From: Richard Purdie <richard.purdie@linuxfoundation.org>
> Sent: Wednesday, April 10, 2024 10:29 AM
> To: Ross Burton <ross.burton@arm.com>; Slater, Joseph
> <joe.slater@windriver.com>
> Cc: openembedded-core@lists.openembedded.org; MacLeod, Randy
> <Randy.MacLeod@windriver.com>
> Subject: Re: [oe-core][PATCH 1/1] init-ifupdown: add predictable interface names
>
> On Wed, 2024-04-10 at 13:41 +0000, Ross Burton wrote:
> > On 10 Jan 2024, at 21:10, Joe Slater via lists.openembedded.org
> > <joe.slater=windriver.com@lists.openembedded.org> wrote:
> > > -# Wired or wireless interfaces
> > > -auto eth0
> > > +# Wired or wireless interfaces including predictable names auto
> > > +/eth0
> >
> > Obviously we’re days away from release but I think we need to revert
> > or rewrite this.
> >
> > The /name syntax is specific to “proper” ifupdown, so any system which
> > uses busybox’s ifupdown will fail to have functional networking. We
> > don’t see this on the AB because there is a separate interfaces file
> > for the qemuall override, this file is only used in non-qemu
> > situations.
>
> I'm worried about the number of other changes over the last few months that are
> related to this so a simple revert might not get us to a good place.
>
> I'd like to see a patch proposal on what we should do. Time is short as testing
> changes takes time and we're now a bit behind already :/.
>
> So specific proposals welcome.
>
> Cheers,
>
> Richard
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: [oe-core][PATCH 1/1] init-ifupdown: add predictable interface names
[not found] ` <17C501F6F3FE569C.18172@lists.openembedded.org>
@ 2024-04-10 21:43 ` Slater, Joseph
2024-04-11 7:29 ` Alexander Kanavin
0 siblings, 1 reply; 7+ messages in thread
From: Slater, Joseph @ 2024-04-10 21:43 UTC (permalink / raw)
To: Slater, Joseph, Richard Purdie, Ross Burton
Cc: openembedded-core, MacLeod, Randy
> -----Original Message-----
> From: openembedded-core@lists.openembedded.org <openembedded-
> core@lists.openembedded.org> On Behalf Of Joe Slater via
> lists.openembedded.org
> Sent: Wednesday, April 10, 2024 12:30 PM
> To: Richard Purdie <richard.purdie@linuxfoundation.org>; Ross Burton
> <ross.burton@arm.com>
> Cc: openembedded-core@lists.openembedded.org; MacLeod, Randy
> <Randy.MacLeod@windriver.com>
> Subject: Re: [oe-core][PATCH 1/1] init-ifupdown: add predictable interface names
>
> The easiest thing to do is to change "auto /eth0" back to "auto eth0". This lets
> bitbake's ifupdown initialize eth0 and also allows the real ifupdown to initialize
> en* interfaces if they exist.
Oops, that's busybox, not bitbake. Since we would need ifupdown to process renamed interfaces, I'm preparing a patch for packagegroup-core-boot to RRECOMMENDS it into the rootfs if sysvinit and pni-names are distro features.
Joe
>
> Joe
>
> > -----Original Message-----
> > From: Richard Purdie <richard.purdie@linuxfoundation.org>
> > Sent: Wednesday, April 10, 2024 10:29 AM
> > To: Ross Burton <ross.burton@arm.com>; Slater, Joseph
> > <joe.slater@windriver.com>
> > Cc: openembedded-core@lists.openembedded.org; MacLeod, Randy
> > <Randy.MacLeod@windriver.com>
> > Subject: Re: [oe-core][PATCH 1/1] init-ifupdown: add predictable
> > interface names
> >
> > On Wed, 2024-04-10 at 13:41 +0000, Ross Burton wrote:
> > > On 10 Jan 2024, at 21:10, Joe Slater via lists.openembedded.org
> > > <joe.slater=windriver.com@lists.openembedded.org> wrote:
> > > > -# Wired or wireless interfaces
> > > > -auto eth0
> > > > +# Wired or wireless interfaces including predictable names auto
> > > > +/eth0
> > >
> > > Obviously we’re days away from release but I think we need to revert
> > > or rewrite this.
> > >
> > > The /name syntax is specific to “proper” ifupdown, so any system
> > > which uses busybox’s ifupdown will fail to have functional
> > > networking. We don’t see this on the AB because there is a separate
> > > interfaces file for the qemuall override, this file is only used in
> > > non-qemu situations.
> >
> > I'm worried about the number of other changes over the last few months
> > that are related to this so a simple revert might not get us to a good place.
> >
> > I'd like to see a patch proposal on what we should do. Time is short
> > as testing changes takes time and we're now a bit behind already :/.
> >
> > So specific proposals welcome.
> >
> > Cheers,
> >
> > Richard
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [oe-core][PATCH 1/1] init-ifupdown: add predictable interface names
2024-04-10 21:43 ` Slater, Joseph
@ 2024-04-11 7:29 ` Alexander Kanavin
0 siblings, 0 replies; 7+ messages in thread
From: Alexander Kanavin @ 2024-04-11 7:29 UTC (permalink / raw)
To: joe.slater; +Cc: Richard Purdie, Ross Burton, openembedded-core, MacLeod, Randy
On Wed, 10 Apr 2024 at 23:43, Joe Slater via lists.openembedded.org
<joe.slater=windriver.com@lists.openembedded.org> wrote:
> Oops, that's busybox, not bitbake. Since we would need ifupdown to process renamed interfaces, I'm preparing a patch for packagegroup-core-boot to RRECOMMENDS it into the rootfs if sysvinit and pni-names are distro features.
We also need to resolve the situation in the 'systemd: make
predictable name mac policy opt-out' thread, can you please look into
it?
Alex
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2024-04-11 7:29 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-10 21:10 [oe-core][PATCH 1/1] init-ifupdown: add predictable interface names joe.slater
2024-04-10 13:41 ` Ross Burton
2024-04-10 17:29 ` Richard Purdie
2024-04-10 18:18 ` Alexander Kanavin
2024-04-10 19:29 ` Slater, Joseph
[not found] ` <17C501F6F3FE569C.18172@lists.openembedded.org>
2024-04-10 21:43 ` Slater, Joseph
2024-04-11 7:29 ` Alexander Kanavin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.