Skip to content

Commit

Permalink
[BACKPORT] Disable predictable interface names (bsc#1230904) (#1581) (#…
Browse files Browse the repository at this point in the history
…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)
  • Loading branch information
davidcassany authored Sep 23, 2024
1 parent 8013a5a commit 21bc439
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/files/etc/elemental/bootargs.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ if [ -n "${img}" ]; then
fi

if [ "${mode}" == "recovery" ]; then
set kernelcmd="console=tty1 root=LABEL=${recovery_label} ${img_arg} elemental.mode=${mode} rd.neednet=0 elemental.oemlabel=${oem_label} selinux=0"
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"
else
if [ "${snapshotter}" == "btrfs" ]; then
set snap_arg="elemental.snapshotter=btrfs"
fi
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"
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"
fi

set initramfs=/boot/initrd
Expand Down

0 comments on commit 21bc439

Please sign in to comment.