diff options
author | Joe Slater <joe.slater@windriver.com> | 2024-01-10 13:10:16 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-01-15 21:42:15 +0000 |
commit | ea5cea668fb7c03b8872ecf9da79eec6f9017220 (patch) | |
tree | f019571ea1afcb1770a1416fdd6047fde03c5115 | |
parent | d2b445384da3f3e6dab8577b6c56648b5244a788 (diff) | |
download | poky-ea5cea668fb7c03b8872ecf9da79eec6f9017220.tar.gz |
init-ifupdown: add predictable interface names
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.
(From OE-Core rev: 4f1ca42b0ae09280247824f08a2b8f22f396b3d1)
Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-core/init-ifupdown/init-ifupdown-1.0/interfaces | 7 |
1 files 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 | |||
13 | 13 | ||
14 | iface atml0 inet dhcp | 14 | iface atml0 inet dhcp |
15 | 15 | ||
16 | # Wired or wireless interfaces | 16 | # Wired or wireless interfaces including predictable names |
17 | auto eth0 | 17 | auto /eth0 |
18 | iface eth0 inet dhcp | 18 | iface eth0 inet dhcp |
19 | iface eth1 inet dhcp | 19 | iface eth1 inet dhcp |
20 | 20 | ||
21 | auto /en*=eth | ||
22 | iface eth inet dhcp | ||
23 | |||
21 | # Ethernet/RNDIS gadget (g_ether) | 24 | # Ethernet/RNDIS gadget (g_ether) |
22 | # ... or on host side, usbnet and random hwaddr | 25 | # ... or on host side, usbnet and random hwaddr |
23 | iface usb0 inet static | 26 | iface usb0 inet static |