From e0561d3635ecd627c207496cac6751ceb46337a2 Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Mon, 15 Apr 2024 07:54:30 -0500 Subject: [PATCH] cloud: Consistent device naming 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 --- fedora-cloud-base-gcp.ks | 2 +- fedora-cloud-base.ks | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/fedora-cloud-base-gcp.ks b/fedora-cloud-base-gcp.ks index d9ed785..0660caf 100644 --- a/fedora-cloud-base-gcp.ks +++ b/fedora-cloud-base-gcp.ks @@ -9,7 +9,7 @@ # Don't show bootloader as it's impossible for the user to get to it in time # So we might as well not waste the 1 second on each boot. # https://cloud.google.com/compute/docs/import/import-existing-image -bootloader --timeout=0 --location=mbr --append="no_timer_check net.ifnames=0 console=ttyS0,38400n8d" +bootloader --timeout=0 --location=mbr --append="no_timer_check console=ttyS0,38400n8d" # redefine `services` here to drop cloud-init systemd unit enablements from # fedora-cloud-base.ks since we don't use them. diff --git a/fedora-cloud-base.ks b/fedora-cloud-base.ks index 52a3b7d..6a17baf 100644 --- a/fedora-cloud-base.ks +++ b/fedora-cloud-base.ks @@ -31,8 +31,7 @@ rootpw --lock --iscrypted locked firewall --disabled -# We pass net.ifnames=0 because we always want to use eth0 here on all the cloud images. -bootloader --timeout=1 --location=mbr --append="no_timer_check net.ifnames=0 console=tty1 console=ttyS0,115200n8" +bootloader --timeout=1 --location=mbr --append="no_timer_check console=tty1 console=ttyS0,115200n8" services --enabled=sshd,cloud-init,cloud-init-local,cloud-config,cloud-final