last-minute surprise /var/cache/swcatalog/cache/C-os-catalog.xb in mantic images
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
livecd-rootfs (Ubuntu) |
New
|
High
|
Unassigned |
Bug Description
Our last respin of the Ubuntu Desktop ISO for mantic to pick up a new version of the ubuntu-
Tracked this down to the addition of a new file under /var/cache:
$ du -sh /mnt/*/
8.4M /mnt/2/
$
This file gets compressed, but we get a SEPARATE copy of it in each of the per-language squashfs layers on the system.
Previously, this file WAS present in the minimal.
A copy also ended up in casper/
I think the image builds should enforce an allowlist of files allowed under /var/cache and fail the build for unexpected contents for each given squashfs layer.
Changed in livecd-rootfs (Ubuntu): | |
importance: | Undecided → High |
tags: | added: foundations-todo |
description: | updated |
description: | updated |
Note that the actual content likely came from /etc/apt/ apt.conf. d/50appstream:
# Refresh AppStream cache when APT's cache is updated (i.e. apt update) :Post-Invoke- Success { swcatalog -a -e /usr/bin/ appstreamcli; then appstreamcli refresh --source=os > /dev/null || true; fi";
APT::Update:
"if /usr/bin/test -w /var/cache/
};