[Bug 2033308] Re: live-build manipulation of conffiles results in them being treated as modified by end user

Michael Hudson-Doyle 2033308 at bugs.launchpad.net
Mon Sep 11 23:22:03 UTC 2023


On Mon, 11 Sept 2023 at 23:21, Philip Roche <2033308 at bugs.launchpad.net>
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?
>

Oh yes. This is just a scream into the void :-)


> > 2) Why isn't https://git.launchpad.net/livecd-rootfs/tree/live-
> build/ubuntu-cpc/hooks.d/chroot/100-preserve-apt-prefs.chroot
> <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
> <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.


Ah OK. Maybe it could be an early chroot hook? Or we just fix it in
live-build as in your patch.

>

> 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
> <https://github.com/canonical/ubuntu-pro-client/issues/2580>


OK. That's a relief :-)

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to livecd-rootfs in Ubuntu.
https://bugs.launchpad.net/bugs/2033308

Title:
  live-build manipulation of conffiles results in them being treated as
  modified by end user

Status in live-build package in Ubuntu:
  In Progress
Status in livecd-rootfs package in Ubuntu:
  New
Status in ubuntu-advantage-tools package in Ubuntu:
  Invalid

Bug description:
  When updating ubuntu-advantage-tools from 29 -> 29.2, a conffile prompt is seen.
  This is on a system that is presumed to not have modified the relevant files.

  
  Setting up ubuntu-advantage-tools (29.2) ...

  Configuration file '/etc/apt/preferences.d/ubuntu-pro-esm-apps'
   ==> Deleted (by you or by a script) since installation.
   ==> Package distributor has shipped an updated version.
     What would you like to do about it ?  Your options are:
      Y or I  : install the package maintainer's version
      N or O  : keep your currently-installed version
        D     : show the differences between the versions
        Z     : start a shell to examine the situation
   The default action is to keep your current version.
  *** ubuntu-pro-esm-apps (Y/I/N/O/D/Z) [default=N] ?

  Configuration file '/etc/apt/preferences.d/ubuntu-pro-esm-infra'
   ==> Deleted (by you or by a script) since installation.
   ==> Package distributor has shipped an updated version.
     What would you like to do about it ?  Your options are:
      Y or I  : install the package maintainer's version
      N or O  : keep your currently-installed version
        D     : show the differences between the versions
        Z     : start a shell to examine the situation
   The default action is to keep your current version.
  *** ubuntu-pro-esm-infra (Y/I/N/O/D/Z) [default=N] ?

  steps to reproduce (at least today):
  lxc launch ubuntu-daily:mantic
  in container:
   apt update
   apt install ubuntu-advantage-tools

  Discovered in subiquity CI -
  https://github.com/canonical/subiquity/actions/runs/6003040269/job/16280611441?pr=1773#step:3:1080

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/live-build/+bug/2033308/+subscriptions




More information about the foundations-bugs mailing list