[Bug 2058617] Re: Do not override sources list when rootfs.tarball is used

Laider Lai 2058617 at bugs.launchpad.net
Tue May 27 08:09:09 UTC 2025


The imagecraft v0.0.post670+g1d8a876 rev44 can use the original rootfs
source list to install packages.

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

Title:
  Do not override sources list when rootfs.tarball is used

Status in Ubuntu Image:
  New

Bug description:
  Currently in u-i the /etc/apt/sources.list.d/ubuntu.sources (or
  /etc/apt/sources.list) file is systematically overridden after the
  rootfs creation, whatever the method used (either from a seed or from
  a tarball). See https://github.com/canonical/ubuntu-
  image/blob/main/internal/statemachine/classic.go#L354

  If no value were given under the rootfs section for
  components/pocket/mirror, default values are used.

  If components/pocket were given in the customization section, then the
  file is overridden again.

  When a tarball is provided, /etc/apt/sources.list.d/ubuntu.sources may
  already be set to something that should be kept. The current behavior
  forces u-i users to set the same values in
  rootfs{.components,.pocket,.mirror} so
  /etc/apt/sources.list.d/ubuntu.sources can be regenerated with the
  same content. This is not very practical because users have to
  maintain the content of /etc/apt/sources.list.d/ubuntu.sources in
  several places.

  Possible solution: we could avoid calling customizeSourcesListState if
  the tarball rootfs was used.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-image/+bug/2058617/+subscriptions




More information about the foundations-bugs mailing list