From fb779404f817e6c3a804b902f1a7837b8ecc4052 Mon Sep 17 00:00:00 2001 From: Johan Date: Mon, 19 Dec 2022 10:26:00 +0100 Subject: [PATCH] Update vm-tweaks.sh to disable cloud-init --- BashScripts/vm-tweaks.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/BashScripts/vm-tweaks.sh b/BashScripts/vm-tweaks.sh index b1a63c6..07ff20d 100644 --- a/BashScripts/vm-tweaks.sh +++ b/BashScripts/vm-tweaks.sh @@ -7,9 +7,13 @@ fi REALUSER=$(logname) rmmod floppy > /dev/null 2>&1 && ( - echo Adding floppy to modprobe blacklist + echo "Adding floppy to modprobe blacklist" echo "blacklist floppy" | tee /etc/modprobe.d/blacklist-floppy.conf dpkg-reconfigure initramfs-tools ) +if [ ! -f "/etc/cloud/cloud-init.disabled" ]; then + echo "Disabling cloud-init" + touch /etc/cloud/cloud-init.disabled +fi -echo 'Installation complete' \ No newline at end of file +echo 'Installation complete. You should reboot to apply changes.' \ No newline at end of file