#43 cloud: Consistent device naming
Merged 2 months ago by ngompa. Opened 2 months ago by mhayden.
mhayden/fedora-kiwi-descriptions device-naming  into  rawhide

cloud: Consistent device naming
Major Hayden • 2 months ago  
file modified
+6 -6
@@ -31,7 +31,7 @@ 

  	<preferences profiles="Cloud-Base-Azure" arch="x86_64,aarch64">

  		<type image="oem" format="vhd-fixed" formatoptions="force_size"

  		      filesystem="btrfs" btrfs_root_is_subvolume="true" btrfs_set_default_volume="false" fsmountoptions="compress=zstd:1"

- 		      kernelcmdline="no_timer_check net.ifnames=0 console=tty1 console=ttyS0,115200n8 earlyprintk=ttyS0"

+ 		      kernelcmdline="no_timer_check console=tty1 console=ttyS0,115200n8 earlyprintk=ttyS0"

  		      devicepersistency="by-uuid"

  		      bootpartition="true" bootpartsize="1000" bootfilesystem="ext4" efipartsize="100" firmware="uefi"

  		      rootfs_label="fedora"
@@ -51,7 +51,7 @@ 

  	<preferences profiles="Cloud-Base-AmazonEC2" arch="x86_64,aarch64">

  		<type image="oem"

  		      filesystem="btrfs" btrfs_root_is_subvolume="true" btrfs_set_default_volume="false" fsmountoptions="compress=zstd:1"

- 		      kernelcmdline="no_timer_check net.ifnames=0 console=tty1 console=ttyS0,115200n8"

+ 		      kernelcmdline="no_timer_check console=tty1 console=ttyS0,115200n8"

  		      devicepersistency="by-uuid"

  		      bootpartition="true" bootpartsize="1000" bootfilesystem="ext4" efipartsize="100" firmware="uefi"

  		      rootfs_label="fedora"
@@ -71,7 +71,7 @@ 

  	<preferences profiles="Cloud-Base-GCE" arch="x86_64,aarch64">

  		<type image="oem" format="gce"

  		      filesystem="btrfs" btrfs_root_is_subvolume="true" btrfs_set_default_volume="false" fsmountoptions="compress=zstd:1"

- 		      kernelcmdline="no_timer_check net.ifnames=0 console=ttyS0,38400n8d"

+ 		      kernelcmdline="no_timer_check console=ttyS0,38400n8d"

  		      devicepersistency="by-uuid"

  		      bootpartition="true" bootpartsize="1000" bootfilesystem="ext4" efipartsize="100" firmware="uefi"

  		      rootfs_label="fedora"
@@ -92,7 +92,7 @@ 

  	<preferences profiles="Cloud-Base-Generic" arch="x86_64,aarch64">

  		<type image="oem" format="qcow2"

  		      filesystem="btrfs" btrfs_root_is_subvolume="true" btrfs_set_default_volume="false" fsmountoptions="compress=zstd:1"

- 		      kernelcmdline="no_timer_check net.ifnames=0 console=tty1 console=ttyS0,115200n8"

+ 		      kernelcmdline="no_timer_check console=tty1 console=ttyS0,115200n8"

  		      devicepersistency="by-uuid"

  		      bootpartition="true" bootpartsize="1000" bootfilesystem="ext4" efipartsize="100" firmware="uefi"

  		      rootfs_label="fedora"
@@ -112,7 +112,7 @@ 

  	<preferences profiles="Cloud-Base-Generic" arch="ppc64le">

  		<type image="oem" format="qcow2"

  		      filesystem="btrfs" btrfs_root_is_subvolume="true" btrfs_set_default_volume="false" fsmountoptions="compress=zstd:1"

- 		      kernelcmdline="no_timer_check net.ifnames=0 console=tty1 console=ttyS0,115200n8"

+ 		      kernelcmdline="no_timer_check console=tty1 console=ttyS0,115200n8"

  		      devicepersistency="by-uuid" target_blocksize="4096"

  		      bootpartition="true" bootpartsize="1000" bootfilesystem="ext4" firmware="ofw"

  		      rootfs_label="fedora"
@@ -132,7 +132,7 @@ 

  	<preferences profiles="Cloud-Base-Generic" arch="s390x">

  		<type image="oem" format="qcow2"

  		      filesystem="btrfs" btrfs_root_is_subvolume="true" btrfs_set_default_volume="false" fsmountoptions="compress=zstd:1"

- 		      kernelcmdline="no_timer_check net.ifnames=0 console=tty1 console=ttyS0,115200n8 dasd_mod.dasd=ipldev"

+ 		      kernelcmdline="no_timer_check console=tty1 console=ttyS0,115200n8 dasd_mod.dasd=ipldev"

  		      devicepersistency="by-uuid" target_blocksize="4096"

  		      bootpartition="true" bootpartsize="1000" bootfilesystem="ext4"

  		      rootfs_label="fedora"

file modified
+2 -2
@@ -13,7 +13,7 @@ 

  	<preferences profiles="Cloud-Base-Vagrant-libvirt" arch="x86_64,aarch64">

  		<type image="oem" format="vagrant"

  		      filesystem="btrfs" btrfs_root_is_subvolume="true" btrfs_set_default_volume="false" fsmountoptions="compress=zstd:1"

- 		      kernelcmdline="no_timer_check console=tty1 console=ttyS0,115200n8 net.ifnames=0 biosdevname=0"

+ 		      kernelcmdline="no_timer_check console=tty1 console=ttyS0,115200n8"

  		      devicepersistency="by-uuid"

  		      bootpartition="true" bootpartsize="1000" bootfilesystem="ext4" efipartsize="100" firmware="uefi"

  		      rootfs_label="fedora"
@@ -34,7 +34,7 @@ 

  	<preferences profiles="Cloud-Base-Vagrant-VirtualBox" arch="x86_64">

  		<type image="oem" format="vagrant"

  		      filesystem="btrfs" btrfs_root_is_subvolume="true" btrfs_set_default_volume="false" fsmountoptions="compress=zstd:1"

- 		      kernelcmdline="no_timer_check console=tty1 console=ttyS0,115200n8 net.ifnames=0 biosdevname=0"

+ 		      kernelcmdline="no_timer_check console=tty1 console=ttyS0,115200n8"

  		      devicepersistency="by-uuid"

  		      bootpartition="true" bootpartsize="1000" bootfilesystem="ext4" efipartsize="100" firmware="uefi"

  		      rootfs_label="fedora"

Use consistent network device names for network devices instead of
forcing the old "ethX" names from pre-2017. This ensures that
specialized network devices, such as SR-IOV devices, are easy to
recognize and configure inside a Fedora instance on a public cloud or
OpenStack cloud.

FESCo ticket: https://pagure.io/fesco/issue/3190
Change proposal: https://fedoraproject.org/wiki/Changes/EnableConsistentDeviceNamingCloud

Signed-off-by: Major Hayden major@redhat.com

What about the Vagrant cloud images?

I'm happy to add those in, but that wasn't really in my original change. Let me know what you think.

I would prefer we go ahead and change the Vagrant images too, since they are intended to be similar to the Cloud images.

rebased onto 3d861c6f246ba3d005a8132078ce70e07c5b3a59

2 months ago

biosdevname=0 needs to be dropped too (it can do the same thing as net.ifnames=0).

biosdevname does sort of the same thing, but with a different approach (it gives different names for the same interfaces, in the cases where both it and udev would rename the same interface). It doesn't work as broadly (and only works at all if the biosdevname package is installed, too). it's probably simpler, if you're doing this for the first time on cloud, to just stick to the systemd/udev approach and leave biosdevname off. the kernel arg is not necessary if you're not pulling in the package, though.

rebased onto 72083f7

2 months ago

Thanks for the input! I've pushed a new patch.

Pull-Request has been merged by ngompa

2 months ago