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.

add-server-hwe
Steve Langasek 2 years ago
parent 3fe7a19c52
commit 481920f28b

@ -93,8 +93,13 @@ fi
# Recommends of ubuntu-server that should not be included in cloud images by # Recommends of ubuntu-server that should not be included in cloud images by
# default # 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 \ _xchroot "$rootd" env DEBIAN_FRONTEND=noninteractive \
apt-get -y autoremove --purge fwupd apt-get -y autoremove --purge fwupd modemmanager udisks2
if [ "${SUBPROJECT:-}" = minimized ]; then if [ "${SUBPROJECT:-}" = minimized ]; then
# Remove various packages that we don't want in the minimized images. # Remove various packages that we don't want in the minimized images.

Loading…
Cancel
Save