Skip to contentSkip to conversation

overlayfs: Disable renaming of network interfaces

PATCH In review [email protected] 2 participants 2 messages Sep 12, 2025 – Sep 15, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 overlayfs: Disable renaming of network interfaces

From: Vyacheslav Yurkov <[email protected]>

Current qemurunner implementation expects internal network interface to be eth0, but by default systemd renames network interfaces to have predictable names. This causes a race in the evaluation of results of susequent commands in case when qemurunner tries to setup the network after the interface was already renamed and fails to do that (because there's no eth0 interface present anymore).

[YOCTO #15962]

---
 meta-selftest/wic/overlayfs_etc.wks.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-selftest/wic/overlayfs_etc.wks.in +1 -1
index 8375d73a9c..f45a042c1c 100644
@@ -1,4 +1,4 @@
 part /boot --active --source bootimg_biosplusefi --ondisk sda --sourceparams="loader=grub-efi" --align 1024
 part / --source rootfs --ondisk sda --fstype=${OVERLAYFS_ROOTFS_TYPE} --use-uuid --align 1024
 part --ondisk sda --fstype=ext4 --size=5 --align 1024
-bootloader --ptable gpt --timeout=1 --append="rootfstype=${OVERLAYFS_ROOTFS_TYPE} console=ttyS0,115200 console=tty0 ${OVERLAYFS_INIT_OPTION}"
+bootloader --ptable gpt --timeout=1 --append="rootfstype=${OVERLAYFS_ROOTFS_TYPE} console=ttyS0,115200 console=tty0 ${OVERLAYFS_INIT_OPTION} net.ifnames=0"
#1 lore raw
Quoted 9 lines · Vyacheslav Yurkov via lists.openembedded.org

From: Vyacheslav Yurkov <[email protected]>

Current qemurunner implementation expects internal network interface to be eth0, but by default systemd renames network interfaces to have predictable names. This causes a race in the evaluation of results of susequent commands in case when qemurunner tries to setup the network after the interface was already renamed and fails to do that (because there's no eth0 interface present anymore).

Quoted 6 lines

[YOCTO #15962]

---
 meta-selftest/wic/overlayfs_etc.wks.in | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)

I'm really happy to see someone track down one of the AB-INTs and fix it, thanks!

Seeing one less of those did make my day :)

Cheers,

Richard