[neon/neon/livecd-rootfs/Neon/release] live-build/ubuntu-cpc/hooks.d/chroot: Remove modemmanager and udisks2 from cloud images in addition to fwupd. The use of tasks at install means all packages are marked manually installed in the apt database, so removing fwupd does not remove its dependencies. LP: #1981109.

Steve Langasek null at kde.org
Mon Nov 28 10:16:27 GMT 2022


Git commit 481920f28b50451edf75f9f3ea6b59ad55931c95 by Steve Langasek.
Committed on 18/11/2022 at 22:51.
Pushed by jriddell into branch 'Neon/release'.

Remove modemmanager and udisks2 from cloud images in addition to fwupd. The use of tasks at install means all packages are marked manually installed in the apt database, so removing fwupd does not remove its dependencies.  LP: #1981109.

M  +6    -1    live-build/ubuntu-cpc/hooks.d/chroot/999-cpc-fixes.chroot

https://invent.kde.org/neon/neon/livecd-rootfs/commit/481920f28b50451edf75f9f3ea6b59ad55931c95

diff --git a/live-build/ubuntu-cpc/hooks.d/chroot/999-cpc-fixes.chroot b/live-build/ubuntu-cpc/hooks.d/chroot/999-cpc-fixes.chroot
index d77ae6bb..3d780e6e 100755
--- a/live-build/ubuntu-cpc/hooks.d/chroot/999-cpc-fixes.chroot
+++ b/live-build/ubuntu-cpc/hooks.d/chroot/999-cpc-fixes.chroot
@@ -93,8 +93,13 @@ fi
 
 # Recommends of ubuntu-server that should not be included in cloud images by
 # default
+# unfortunately because we are currently installing ubuntu-server as a task,
+# all of the recursive dependencies are marked as manually installed and are
+# not subject to autoremoval.  There is discussion of us stopping the use of
+# tasks in livecd-rootfs but in the meantime, we have to also explicitly
+# remove the packages providing the services
 _xchroot "$rootd" env DEBIAN_FRONTEND=noninteractive \
-	apt-get -y autoremove --purge fwupd
+	apt-get -y autoremove --purge fwupd modemmanager udisks2
 
 if [ "${SUBPROJECT:-}" = minimized ]; then
 	# Remove various packages that we don't want in the minimized images.



More information about the Neon-commits mailing list