Skip to content

Commit 21bc439

Browse files
authored
[BACKPORT] Disable predictable interface names (bsc#1230904) (#1581) (#1582)
Disable predictable interface names (bsc#1230904) (#1581) This commit adds the net.ifnames=0 kernel parameter to the OS images to prevent interface rename. With the new Micro 6 image, the kernel uses predicable interface naming convention, which causes a network interface rename when upgrading from older OS versions. This change disables this new kernel feature and keeps the old behavior. Fixes bsc#1230904 Signed-off-by: David Cassany <[email protected]> (cherry picked from commit a9c1d57)
1 parent 8013a5a commit 21bc439

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

framework/files/etc/elemental/bootargs.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ if [ -n "${img}" ]; then
1515
fi
1616

1717
if [ "${mode}" == "recovery" ]; then
18-
set kernelcmd="console=tty1 root=LABEL=${recovery_label} ${img_arg} elemental.mode=${mode} rd.neednet=0 elemental.oemlabel=${oem_label} selinux=0"
18+
set kernelcmd="console=tty1 root=LABEL=${recovery_label} ${img_arg} elemental.mode=${mode} rd.neednet=0 elemental.oemlabel=${oem_label} selinux=0 net.ifnames=0"
1919
else
2020
if [ "${snapshotter}" == "btrfs" ]; then
2121
set snap_arg="elemental.snapshotter=btrfs"
2222
fi
23-
set kernelcmd="console=tty1 root=LABEL=${state_label} ${img_arg} ${snap_arg} elemental.mode=${mode} panic=5 rd.neednet=0 elemental.oemlabel=${oem_label} fsck.mode=force fsck.repair=yes selinux=1 enforcing=0"
23+
set kernelcmd="console=tty1 root=LABEL=${state_label} ${img_arg} ${snap_arg} elemental.mode=${mode} panic=5 rd.neednet=0 elemental.oemlabel=${oem_label} fsck.mode=force fsck.repair=yes selinux=1 enforcing=0 net.ifnames=0"
2424
fi
2525

2626
set initramfs=/boot/initrd

0 commit comments

Comments
 (0)