[neon/neon/livecd-rootfs/Neon/release] live-build/ubuntu/hooks: feat(Hyperv Desktop): Disable cloud-init for Hyperv Desktop images (LP: #2064280)

Philip Roche null at kde.org
Thu Jul 11 11:54:01 BST 2024


Git commit 40c7eac14d2e99c8edab1b1f207b6b1ceb616b3e by Philip Roche.
Committed on 24/05/2024 at 14:30.
Pushed by carlosdem into branch 'Neon/release'.

feat(Hyperv Desktop): Disable cloud-init for Hyperv Desktop images (LP: #2064280)

For Ubuntu 24.04 and later cloud-init is included in desktop images. This is not applicable for Hyperv images so
we can disable cloud-init. This leaves the cloud-init package installed but disabled so users can still
use it if they want.

This is a documented way to disable cloud-init. See https://cloudinit.readthedocs.io/en/latest/howto/disable_cloud_init.html

(cherry picked from commit ff47664d8c646ebae72c40145ee1fd8098185de6)

M  +6    -0    live-build/ubuntu/hooks/040-hyperv-desktop-images.binary

https://invent.kde.org/neon/neon/livecd-rootfs/-/commit/40c7eac14d2e99c8edab1b1f207b6b1ceb616b3e

diff --git a/live-build/ubuntu/hooks/040-hyperv-desktop-images.binary b/live-build/ubuntu/hooks/040-hyperv-desktop-images.binary
index df111588..21794803 100644
--- a/live-build/ubuntu/hooks/040-hyperv-desktop-images.binary
+++ b/live-build/ubuntu/hooks/040-hyperv-desktop-images.binary
@@ -39,6 +39,12 @@ trap cleanup_hyperv EXIT
 
 # Perform customisations
 
+# For Ubuntu 24.04 and later cloud-init is included in desktop images. This is not applicable for Hyperv images so
+# we can disable cloud-init. This leaves the cloud-init package installed but disabled so users can still
+# use it if they want.
+touch "${scratch_d}/etc/cloud/cloud-init.disabled"
+
+
 chroot "${scratch_d}" apt-get update -y
 chroot "${scratch_d}" apt-get -y install xrdp linux-azure linux-tools-azure linux-cloud-tools-azure polkitd-pkla oem-config-gtk ubiquity-frontend-gtk  ubiquity-slideshow-ubuntu language-pack-en-base oem-config-slideshow-ubuntu
 



More information about the Neon-commits mailing list