From 1205bf686fd60f97e19ad395564efee15e2dd268 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Hertzog?= Date: Thu, 18 Feb 2021 16:15:27 +0100 Subject: [PATCH] Pass "net.ifnames=0" to the kernel command line of the installer images We want debian-installer to see "ethX" device names and not the other names that we have disabled via kali-defaults anyway. That discrepancy even breaks networking for minimal installations where /etc/network/interfaces gets the wrong name. --- simple-cdd/simple-cdd.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/simple-cdd/simple-cdd.conf b/simple-cdd/simple-cdd.conf index 80e2c5e..5d533af 100644 --- a/simple-cdd/simple-cdd.conf +++ b/simple-cdd/simple-cdd.conf @@ -60,6 +60,9 @@ mirror_components="main contrib non-free" security_mirror="" updates_mirror="" +# Add kernel parameter to disable +export KERNEL_PARAMS="net.ifnames=0 " + # Kernel and architecture related if [ "$ARCH" = "i386" ]; then kernel_packages="linux-image-686-pae" @@ -67,7 +70,7 @@ fi if [ "$ARCH" = "arm64" ]; then kernel_packages="linux-image-arm64" # ARM devices don't typically have a default console set, so we export one here - export KERNEL_PARAMS="console=tty0 " + export KERNEL_PARAMS="${KERNEL_PARAMS} console=tty0 " # Some packages are not available on arm64 require_optional_packages="false" fi