diff --git a/cloud_setup.sh b/cloud_setup.sh index 9bb57a9..116c50d 100644 --- a/cloud_setup.sh +++ b/cloud_setup.sh @@ -252,5 +252,8 @@ ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N "" awk '$5 >= 3071' /etc/ssh/moduli > /etc/ssh/moduli.safe mv /etc/ssh/moduli.safe /etc/ssh/moduli +# GRUB enable swap and disable root recovery +echo 'GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1"' >> /etc/default/grub +echo 'GRUB_DISABLE_RECOVERY="true"' >> /etc/default/grub echo '######################################################################################################################### UNAUTHORIZED ACCESS TO THIS DEVICE IS PROHIBITED ## You must have explicit, authorized permission to access or configure this device. ## Unauthorized attempts and actions to access or use this system may result in civil and/or criminal penalties. ## All activities performed on this device are logged and monitored. ## Disconnect IMMEDIATELY if you are not an authorized user! #########################################################################################################################' > /etc/motd \ No newline at end of file