From bf958b1472619662112a38e5ee366660519e6a71 Mon Sep 17 00:00:00 2001 From: Mathieu Trudel-Lapierre Date: Wed, 5 Apr 2017 13:35:38 -0400 Subject: [PATCH] Disable cloud-init for the live-session. user-setup will create our ubuntu user via casper. --- .../ubuntu-server-next/hooks/032-installer-squashfs.binary | 3 +++ 1 file changed, 3 insertions(+) diff --git a/live-build/ubuntu-server-next/hooks/032-installer-squashfs.binary b/live-build/ubuntu-server-next/hooks/032-installer-squashfs.binary index c0181d29..08885af6 100755 --- a/live-build/ubuntu-server-next/hooks/032-installer-squashfs.binary +++ b/live-build/ubuntu-server-next/hooks/032-installer-squashfs.binary @@ -41,6 +41,9 @@ chroot $SQUASH_ROOT apt-get update chroot $SQUASH_ROOT apt-get -y install user-setup chroot $SQUASH_ROOT apt-get -y install curtin +# Don't let cloud-init run in the live session. +touch $SQUASH_ROOT/etc/cloud/cloud-init.disabled + # Do the snap seeding dance. chroot $SQUASH_ROOT mkdir -p /var/lib/snapd/seed/snaps /var/lib/snapd/seed/assertions chroot $SQUASH_ROOT sh -c '