From eed6f43f83ab7029ccb81d7725c03acd79d390bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Hertzog?= Date: Mon, 9 Dec 2019 14:49:02 +0100 Subject: [PATCH] Drop systemd config overrides also handled by kali-defaults That way only kali-defaults needs to be changed when something changes in the systemd/udev side. --- kali-config/common/hooks/live/kali-hacks.chroot | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/kali-config/common/hooks/live/kali-hacks.chroot b/kali-config/common/hooks/live/kali-hacks.chroot index 60d7606..c3297be 100755 --- a/kali-config/common/hooks/live/kali-hacks.chroot +++ b/kali-config/common/hooks/live/kali-hacks.chroot @@ -21,16 +21,7 @@ if [ -e /etc/cryptsetup-initramfs/conf-hook ]; then fi fi -# 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 /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 - -# Rebuild the initramfs to include the last two changes (cryptsetup, -# network device) +# Rebuild the initramfs to include the last change update-initramfs -u # Run updatedb to initialize the database for the locate command