Comment 3 for bug 2033308

Revision history for this message
John Chittum (jchittum) wrote : Re: conffile prompt in upgrade from 29 -> 29.2

I worked up a reproducer of things operating as expected, which makes me believe it's a timing issue around when `livecd-rootfs` and `live-build` do cleanup. on livecd-rootfs:ubuntu/master, i added the following to `live-build/ubuntu-cpc/hooks.d/base/create-root-dir.binary`

env DEBIAN_FRONTEND=noninteractive chroot $rootfs_dir apt-get --purge remove --assume-yes ubuntu-advantage-tools
env DEBIAN_FRONTEND=noninteractive chroot $rootfs_dir apt-get autoremove --purge --assume-yes
env DEBIAN_FRONTEND=noninteractive chroot $rootfs_dir apt-get install --assume-yes ubuntu-advantage-tools

I then ran a build of `PROJECT=ubuntu-cpc IMAGE_TARGET=tarball`

afterwards, registered an lxc container locally with the lxd metadata from cloud-images.ubuntu.com (http://cloud-images.ubuntu.com/mantic/20230823/mantic-server-cloudimg-amd64-lxd.tar.xz)

lxc image import mantic-server-cloudimg-amd64-lxd.tar.xz livecd.ubuntu-cpc.rootfs.tar.xz --alias mantic-ua-manual-install

lxc shell immortal-bobcat
root@immortal-bobcat:~# dpkg -l | grep ubuntu-ad
ii ubuntu-advantage-tools 29.3 amd64 management tools for Ubuntu Pro
root@immortal-bobcat:~# ls /etc/apt/preferences.d/
ubuntu-pro-esm-apps ubuntu-pro-esm-infra
root@immortal-bobcat:~# cat /etc/cloud/build.info
build_name: server
serial: 20230901.1405

I'm now going to see if i can work up a reproducer of it _failing_ on Jammy by adding a proposed install during `auto/build` rather than a hook.