We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0e3b15 commit d740185Copy full SHA for d740185
scripts/90-cleanup.sh
@@ -49,6 +49,9 @@ elif [ -n "$(command -v apt-get)" ]; then
49
# They may have been removed as dependencies during package cleanup
50
apt-get -y install --no-install-recommends cloud-init openssh-server
51
52
+ # Ensure cloud-init and SSH services are enabled (may not be re-enabled on reinstall)
53
+ systemctl enable cloud-init-local.service cloud-init.service cloud-config.service cloud-final.service ssh.service || true
54
+
55
# Protect SSH and cloud-init dependencies from autoremove
56
# Without these, the AMI won't be accessible via SSH after boot
57
apt-mark manual openssh-server cloud-init python3-systemd python3-jinja2 \
0 commit comments