From 9f1df0e18c713c2dad4decf56d2e4ff4b1908658 Mon Sep 17 00:00:00 2001 From: mikepell Date: Sat, 8 Oct 2022 14:34:23 +0000 Subject: [PATCH] blacklist floppy --- prepare-ubuntu-18.04-template.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/prepare-ubuntu-18.04-template.sh b/prepare-ubuntu-18.04-template.sh index 325d33c..09bb2c6 100755 --- a/prepare-ubuntu-18.04-template.sh +++ b/prepare-ubuntu-18.04-template.sh @@ -33,6 +33,11 @@ if [ -f /var/log/lastlog ]; then truncate -s0 /var/log/lastlog fi +# remove floppy support +sudo rmmod floppy +echo "blacklist floppy" | tee /etc/modprobe.d/blacklist-floppy.config +update-initramfs -u + #cleanup /tmp directories rm -rf /tmp/* rm -rf /var/tmp/*