From 3cf98a2d09584c433d0922a0fbba5022501a5389 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Hertzog?= Date: Mon, 9 May 2016 12:40:34 +0200 Subject: [PATCH] Add a temporary work-around for udev rule renaming USB network interfaces --- kali-config/common/hooks/live/kali-hacks.chroot | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kali-config/common/hooks/live/kali-hacks.chroot b/kali-config/common/hooks/live/kali-hacks.chroot index 60de4c5..b0a30b5 100755 --- a/kali-config/common/hooks/live/kali-hacks.chroot +++ b/kali-config/common/hooks/live/kali-hacks.chroot @@ -8,7 +8,8 @@ systemctl --user enable pulseaudio.service || true # Disable the udev rules renaming the network interfaces (can also be # achieved with kernel command line net.ifnames=0 but we don't have a nice # way to set it on the installed system) -mkdir -p /etc/systemd/network +mkdir -p /etc/systemd/network /etc/udev/rules.d ln -sf /dev/null /etc/systemd/network/90-mac-for-usb.link ln -sf /dev/null /etc/systemd/network/99-default.link +echo > /etc/udev/rules.d/73-special-net-names.rules update-initramfs -u