[Bug 1957123] Re: livecd-rootfs incorrectly installs core snap as implicit dep of other base snaps

Launchpad Bug Tracker 1957123 at bugs.launchpad.net
Tue Feb 1 17:34:19 UTC 2022


This bug was fixed in the package livecd-rootfs - 2.664.37

---------------
livecd-rootfs (2.664.37) focal; urgency=medium

  * Do not look for a base snap on snaps of type base, because recursive
    dependencies are not allowed for snaps.  LP: #1957123.
  * Treat it as a fatal error if we are asked to install a snap that would
    pull in the core snap.  Ubuntu 20.04 and Ubuntu 22.04 official images
    should never require snaps that depend on an Ubuntu 16.04 runtime, this
    indicates a misconfiguration that will bloat the install.

 -- Steve Langasek <steve.langasek at ubuntu.com>  Tue, 18 Jan 2022
16:16:18 -0800

** Changed in: livecd-rootfs (Ubuntu Focal)
       Status: Fix Committed => Fix Released

-- 
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/1957123

Title:
  livecd-rootfs incorrectly installs core snap as implicit dep of other
  base snaps

Status in livecd-rootfs package in Ubuntu:
  Fix Released
Status in livecd-rootfs source package in Focal:
  Fix Released

Bug description:
  [Justification]
  The focal and jammy desktop images include a gtk-common-themes snap which uses base: bare.  This is obviously supposed to mean the snap has no external dependencies on a particular core snap.  Unfortunately, the logic in livecd-rootfs is broken, and when processing the bare snap itself, seeing that it has no base: declared in its own metadata, interprets this as meaning there is an implicit dependency on the core snap and pulls in a whole separate root filesystem pointlessly.

  We should:
  - fix livecd-rootfs to not look for base snaps of snaps which are themselves type: base
  - make it a fatal build error for focal an later to try to build an image that pulls in the core snap, since this is legacy (the Ubuntu 16.04 rootfs should not be used in Ubuntu 20.04 and later images) and it's a bad bug if it does get pulled in.

  [Test case]
  All daily images should build successfully for all flavors with the updated livecd-rootfs.  If this change introduces any build failures, it should be reverted until the underlying problem (seeding a snap that requires 'core' as a base) can be resolved.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/1957123/+subscriptions




More information about the foundations-bugs mailing list