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.
merge-requests/16/head 2021.1
Raphaël Hertzog 4 years ago
parent 9bc29959fc
commit 1205bf686f
No known key found for this signature in database
GPG Key ID: 03881DABEBC29AB9

@ -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

Loading…
Cancel
Save