From 42dc132bf3e072009ad6b5f0bbd110b1d3606194 Mon Sep 17 00:00:00 2001 From: Stephane Armanet <stephanearmanet@esss.lu.se> Date: Tue, 28 Sep 2021 13:29:05 +0200 Subject: [PATCH] use generic NIC names (ethX) --- templates/centos7-default.ks.j2 | 3 ++- templates/grub-menu/BIOS-centos7.j2 | 2 +- templates/grub-menu/EFI-centos7.j2 | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/templates/centos7-default.ks.j2 b/templates/centos7-default.ks.j2 index 6216919..edbdd8d 100644 --- a/templates/centos7-default.ks.j2 +++ b/templates/centos7-default.ks.j2 @@ -5,7 +5,7 @@ # System authorization information auth --useshadow --enablemd5 # System bootloader configuration -bootloader --location=mbr +bootloader --location=mbr --append="net.ifnames=0" # Partition clearing information clearpart --all --initlabel # Use text mode install @@ -69,6 +69,7 @@ done & %packages %include {{ kickstart_url }}/default_packages.template +-biosdevname %end diff --git a/templates/grub-menu/BIOS-centos7.j2 b/templates/grub-menu/BIOS-centos7.j2 index a492b8d..113a882 100644 --- a/templates/grub-menu/BIOS-centos7.j2 +++ b/templates/grub-menu/BIOS-centos7.j2 @@ -1,3 +1,3 @@ -linux /images/centos7-x86_64/vmlinuz ksdevice=bootif lang= nomodeset text xdriver=vesa kssendmac ks=http://{{ kickstart_ip }}/centos7/centos7-default.ks noverifyssl +linux /images/centos7-x86_64/vmlinuz ksdevice=bootif lang= nomodeset text xdriver=vesa kssendmac ks=http://{{ kickstart_ip }}/centos7/centos7-default.ks noverifyssl inst.sshd=1 net.ifnames=0 biosdevname=0 initrd /images/centos7-x86_64/initrd.img diff --git a/templates/grub-menu/EFI-centos7.j2 b/templates/grub-menu/EFI-centos7.j2 index 362a731..3f67958 100644 --- a/templates/grub-menu/EFI-centos7.j2 +++ b/templates/grub-menu/EFI-centos7.j2 @@ -1,3 +1,3 @@ -linuxefi /images/centos7-x86_64/vmlinuz ksdevice=bootif lang= nomodeset text xdriver=vesa kssendmac ks=http://{{ kickstart_ip }}/centos7/centos7-default.ks noverifyssl +linuxefi /images/centos7-x86_64/vmlinuz ksdevice=bootif lang= nomodeset text xdriver=vesa kssendmac ks=http://{{ kickstart_ip }}/centos7/centos7-default.ks noverifyssl inst.sshd=1 net.ifnames=0 biosdevname=0 initrdefi /images/centos7-x86_64/initrd.img -- GitLab