X-Git-Url: https://git.madduck.net/code/vinst.git/blobdiff_plain/c4c55ce4a7853887d746ab8ad7471bf947b1bafc..9e1c6791342fb991a4b7e8d67b37a56765312322:/preseed/stretch/commands/late_commands.d/no_kernel_symlinks diff --git a/preseed/stretch/commands/late_commands.d/no_kernel_symlinks b/preseed/stretch/commands/late_commands.d/no_kernel_symlinks new file mode 100755 index 0000000..290cbd3 --- /dev/null +++ b/preseed/stretch/commands/late_commands.d/no_kernel_symlinks @@ -0,0 +1,4 @@ +#!/bin/sh +echo "Removing kernel symlinks in / and disabling them..." +rm /initrd.img /vmlinuz +sed -i -e '/do_symlinks/s/yes/no/' /etc/kernel-img.conf