From 4788e90315999e1c7835516acddb4a9ac3df692c Mon Sep 17 00:00:00 2001 From: Michael Hudson-Doyle Date: Wed, 9 Oct 2019 10:06:50 +1300 Subject: [PATCH] Create the lxd group as a system group for all projects. (LP: #1844498) --- debian/changelog | 6 ++++++ live-build/auto/config | 12 ++++++++++++ 2 files changed, 18 insertions(+) diff --git a/debian/changelog b/debian/changelog index b968888f..36b8f6bc 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +livecd-rootfs (2.617) UNRELEASED; urgency=medium + + * Create the lxd group as a system group for all projects. (LP: #1844498) + + -- Michael Hudson-Doyle Wed, 09 Oct 2019 10:12:09 +1300 + livecd-rootfs (2.616) eoan; urgency=medium * Subiquity images mount /usr/lib/modules from a squashfs, which systemd diff --git a/live-build/auto/config b/live-build/auto/config index 8addfd7b..fccd923f 100755 --- a/live-build/auto/config +++ b/live-build/auto/config @@ -988,6 +988,18 @@ echo "BUILDSTAMP=\"$NOW\"" >> config/binary echo "SUBPROJECT=\"${SUBPROJECT:-}\"" >> config/binary echo "LB_DISTRIBUTION=\"$SUITE\"" >> config/binary +# We add the lxd group at image build time so that the default user +# created by the installer or cloud-init is added to it (cloud-init +# will create any group the user is configured to be added to, but as +# a normal group not a system group, see +# https://bugs.launchpad.net/cloud-images/+bug/1844498). +cat > config/hooks/100-add-lxd-group.chroot < config/hooks/01-firmware-directory.chroot_early <