summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Slater <joe.slater@windriver.com>2024-01-10 13:10:16 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-01-15 21:42:15 +0000
commitea5cea668fb7c03b8872ecf9da79eec6f9017220 (patch)
treef019571ea1afcb1770a1416fdd6047fde03c5115
parentd2b445384da3f3e6dab8577b6c56648b5244a788 (diff)
downloadpoky-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/interfaces7
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
14iface atml0 inet dhcp 14iface atml0 inet dhcp
15 15
16# Wired or wireless interfaces 16# Wired or wireless interfaces including predictable names
17auto eth0 17auto /eth0
18iface eth0 inet dhcp 18iface eth0 inet dhcp
19iface eth1 inet dhcp 19iface eth1 inet dhcp
20 20
21auto /en*=eth
22iface 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
23iface usb0 inet static 26iface usb0 inet static