Browse Source

Merge "enable cloud-init by default on systemd"

changes/60/824660/4
Zuul 4 months ago committed by Gerrit Code Review
parent
commit
bef53f2674
  1. 7
      diskimage_builder/elements/cloud-init/post-install.d/20-enable-cloud-init

7
diskimage_builder/elements/cloud-init/post-install.d/20-enable-cloud-init

@ -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

Loading…
Cancel
Save