snap commands.db grows the image by 4mb

Bug #2025986 reported by Christian Ehrhardt 
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-images
Confirmed
Undecided
Unassigned
snapd (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hi,
our regular metric checks found a 4mb increase of disc consumption.

I've found that comparing
from
74e72ff5c7af | yes | ubuntu 23.10 amd64 (minimal daily) (20230614
to
c61eed8b36a0 | yes | ubuntu 23.10 amd64 (minimal daily) (20230618)

both from https://cloud-images.ubuntu.com/minimal/daily/

No packages changed, but /var/cache had ~4mb more.

I found that this is due to /var/cache/snapd/commands.db now being present.

The other commands.db like /var/lib/command-not-found/commands.db are stripped in those images, so I guess It should be done here as well?

I'd appreciate if you could have a look if this is intentional or just fallen through the crack and need to be stripped.

Revision history for this message
John Chittum (jchittum) wrote :

curious, an examination hasn't brought much to life why it started being added.

package diffs (20230614 : 20230618)

base-files 12.3ubuntu3 : base-files 13ubuntu1

gcc-13-base:amd64 13.1.0-2ubuntu2 : gcc-13-base:amd64 13.1.0-5ubuntu1

isc-dhcp-client 4.4.3-P1-2ubuntu2 : isc-dhcp-client 4.4.3-P1-2ubuntu4

isc-dhcp-common 4.4.3-P1-2ubuntu2 : isc-dhcp-common 4.4.3-P1-2ubuntu4

libappstream4:amd64 0.16.1-2 : libappstream4:amd64 0.16.2-1

libgcc-s1:amd64 13.1.0-2ubuntu2 : libgcc-s1:amd64 13.1.0-5ubuntu1

libsmartcols1:amd64 2.38.1-5ubuntu2libstdc++6:amd64 13.1.0-5ubuntu1 : libsmartcols1:amd64 2.38.1-5ubuntu2

libstdc++6:amd64 13.1.0-2ubuntu2 : libstdc++6:amd64 13.1.0-5ubuntu1

mawk 1.3.4.20200120-3.1 : mawk 1.3.4.20230525-1

motd-news-config 12.3ubuntu3 : motd-news-config 13ubuntu1

python3-distupgrade 1:23.10.2 : python3-distupgrade 1:23.10.3

ubuntu-release-upgrader-core 1:23.10.2 : ubuntu-release-upgrader-core 1:23.10.3

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I'm also not seeing where the commands.db is removed normally. for Minimal, there's a dpkg-filter for man pages but i'm not seeing commands.db

https://git.launchpad.net/livecd-rootfs/tree/live-build/auto/build#n183

This needs a deeper look, because something is off _somewhere_, but i can't find a diff as to what may have changed, or the location where we remove other commands.db in a minimal image (at least within livecd-rootfs)

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Yeah, I saw this file even being added between images with zero package diff at all.

Hence I assumed it would be part of the build/filtering process on your side.
Since you agreed, I hope you do not mind me setting that to confirmed then.

Changed in cloud-images:
status: New → Confirmed
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

FYI, since 11th July this also affects mantic daily images.

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

It was hidden under other noise, but since July 10th also Jammy images are affected

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

CPC-2799

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Since 26th July this also affects Lunar.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.