commit:     bd6c61fa7415fd5f24dbf75a3fdcd8c08bc2bd7b
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Sat Dec  7 13:23:55 2024 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Sat Dec  7 13:23:55 2024 +0000
URL:        https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=bd6c61fa

Add support for cloud-init image

Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>

 targets/support/diskimagefs-update.sh | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/targets/support/diskimagefs-update.sh 
b/targets/support/diskimagefs-update.sh
index f7da3f0f..bc7832e4 100755
--- a/targets/support/diskimagefs-update.sh
+++ b/targets/support/diskimagefs-update.sh
@@ -75,6 +75,13 @@ case ${clst_diskimage_type} in
                echo "Adding sshd service"
                systemctl enable sshd
                ;;
+       cloud-init|cloudinit)
+               echo "Setting up cloud-init image"
+               echo "Running systemd-firstboot"
+               systemd-firstboot --timezone=UTC || die "Failed running 
systemd-firstboot"
+               echo "Adding cloud-init service"
+               systemctl enable cloud-init || die "Failed to enable cloud-init 
service"
+               ;;
        *)
                die "As yet unsupported image type"
                ;;

Reply via email to