server image pulls in ModemManager via fwupd, consumes 25MiB RAM in every container
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
fwupd (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Jammy |
Invalid
|
Undecided
|
Unassigned | ||
livecd-rootfs (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Jammy |
Fix Released
|
High
|
Unassigned | ||
modemmanager (Ubuntu) |
Triaged
|
High
|
Unassigned | ||
Jammy |
Confirmed
|
Undecided
|
Unassigned | ||
ubuntu-meta (Ubuntu) |
Confirmed
|
Undecided
|
Ubuntu Server | ||
Jammy |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
[Impact]
Cloud images should not have fwupd, modemmanager, and udisks2 installed as those are not needed and only taking up memory.
[Test Case]
Build cloud images with livecd-rootfs and confirm that fwupd, modemmanager, and udisks2 are not present and not running.
[Regression Potential]
Only thing that might happen is for any of the 3 listed packages getting removed from images where they might be used. So possibly double-checking if this will affect preinstalled server images and if they care about this or not.
[Original Description]
Looking at memory utilization in a pristine Ubuntu lxd container (top -o RES), I see that ModemManager is running, which I was surprised to see is present at all in the stock image.
Tracking this I find that fwupd depends on libmm-glib0, which in turn Recommends: modemmanager.
Libraries in general should not recommend daemons, so it's possible this should be fixed by libmm-glib0 dropping this Recommends. It certainly doesn't seem to be a deliberate decision by the Server Team to have modemmanager installed and running by default on all systems.
Related branches
- Ubuntu Core Development Team: Pending requested
-
Diff: 334 lines (+191/-2) (has conflicts)4 files modifieddebian/changelog (+107/-0)
live-build/auto/build (+3/-0)
live-build/auto/config (+68/-2)
live-build/ubuntu-cpc/hooks.d/base/disk-image-uefi.binary (+13/-0)
- Michael Hudson-Doyle: Pending requested
- John Chittum: Pending requested
-
Diff: 28 lines (+6/-0)2 files modifieddebian/changelog (+1/-0)
live-build/ubuntu-cpc/hooks.d/chroot/999-cpc-fixes.chroot (+5/-0)
Changed in ubuntu-meta (Ubuntu): | |
assignee: | nobody → Ubuntu Server (ubuntu-server) |
tags: | added: rls-kk-incoming |
Changed in modemmanager (Ubuntu): | |
importance: | Undecided → High |
status: | New → Triaged |
Changed in fwupd (Ubuntu Jammy): | |
status: | New → Invalid |
Changed in livecd-rootfs (Ubuntu Jammy): | |
status: | New → Triaged |
Changed in livecd-rootfs (Ubuntu): | |
status: | Triaged → In Progress |
tags: | added: fr-2592 |
Changed in livecd-rootfs (Ubuntu): | |
status: | In Progress → Fix Committed |
tags: | removed: rls-kk-incoming |
tags: | added: foundations-todo |
Changed in livecd-rootfs (Ubuntu Jammy): | |
importance: | Undecided → Medium |
importance: | Medium → High |
tags: | added: foundations-todo fr-2592 verification-needed verification-needed-jammy |
tags: |
added: verification-done-jammy removed: verification-needed-jammy |
I've also just discovered that in addition to the second-largest running process (ModemManager), fwupd is responsible for the third-largest running process (udisksd). Perhaps it would be expedient to revisit the inclusion of fwupd in the seed used for cloud and container images?