Comment 11 for bug 2033308

Revision history for this message
Philip Roche (philroche) wrote :

> 1) It would really be better if we could put packaged apt preference files somewhere not in /etc (systemd-style /run-/etc/-/user searching for everything please)

This would require apt changes though?

> 2) Why isn't https://git.launchpad.net/livecd-rootfs/tree/live-build/ubuntu-cpc/hooks.d/chroot/100-preserve-apt-prefs.chroot preventing this? That's what it's there for

This happens too late in the build. See build log https://people.canonical.com/~philroche/lp-2033308-live-build/disk-image-ubuntu-bartender.log . The 010-preserve-apt-prefs.chroot check is at line 34486 of the build log. But debootstrap and lb_chroot_archives removes the files at line 25578 so at the time 010-preserve-apt-prefs.chroot runs there is nothing to backup.

> 3) How many images are out there with this damage? If it's just mantic well whatever but if there are lunar or even older images out there that are missing these files then we'll need to do something in ubuntu-advantage-tools to avoid these prompts on upgrade (I'm not sure what, mind -- we could do hacks to avoid these files being marked as conffiles, which will probably just mean that dpkg stomps on these files on upgrade -- which might be ok? Otherwise it's delicate preinst games I guess).

Mantic only. Only ubuntu-advantage-tools 29 introduced these pinning files as part of addressing https://github.com/canonical/ubuntu-pro-client/issues/2580