enable cloud-init by default on systemd

Change-Id: Ie908f7c5b9ea2c1b97daf149ef70f4c68ddf73a0
Signed-off-by: Matthew Thode <mthode@mthode.org>
This commit is contained in:
Matthew Thode 2021-12-18 17:51:18 -06:00
parent 6ae099f464
commit 902b7454c3
No known key found for this signature in database
GPG Key ID: 64A37BEAAE19A4E8
1 changed files with 7 additions and 0 deletions

View File

@ -13,3 +13,10 @@ if [[ "${DIB_INIT_SYSTEM}" == "openrc" ]]; then
rc-update add cloud-init-local boot
rc-update add cloud-init default
fi
if [[ "${DIB_INIT_SYSTEM}" == "systemd" ]]; then
systemctl enable cloud-config.service
systemctl enable cloud-final.service
systemctl enable cloud-init-local.service
systemctl enable cloud-init.service
fi