[Bug 2048129] Re: noble: deb822 format support of /etc/apt/sources.list.d/ubuntu.sources instead of /etc/apt/sources.list
Launchpad Bug Tracker
2048129 at bugs.launchpad.net
Mon Feb 12 12:26:26 UTC 2024
** Merge proposal linked:
https://code.launchpad.net/~juliank/livecd-rootfs/+git/livecd-rootfs/+merge/458366
--
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/2048129
Title:
noble: deb822 format support of /etc/apt/sources.list.d/ubuntu.sources
instead of /etc/apt/sources.list
Status in livecd-rootfs package in Ubuntu:
In Progress
Bug description:
In ubuntu noble and later, cloud-init 24.1 based releases will
automatically remove /etc/apt/sources.list and emit a warning log in
cloud-init.log (and cloud-init status exit 2) if it finds in in images
during first boot in favor of writing deb822 formatted
/etc/apt/sources.list.d/ubuntu.sources files.
If livecd-rootfs is manipulating /etc/apt/sources.list in images which have cloud-init enabled, expect that this file will be removed by cloud-init on first boot and any tooling checking for cloud-init status will see a warning exit code.
The non-zero exit code (2) indicating a warning condition when removing /etc/apt/sources.list in cloud-init
is enough to break CI/CD tooling for scripts which rely on cloud-init status --wait exit codes.
Note: the behavior of cloud-init on mantic and earlier is to overwrite /etc/apt/sources.list on first boot which does This behavior of preferring unifed apt sources in /etc/apt/source.list will be retained on by cloud-init on earlier ubuntu releases even when 24.1 SRUs to stable releases
Also there is preinstalled image support in livecd-rootfs where cloud-init may not be enabled. It would be good to understand the implications if preinstall images migrate to /etc/apt/sources.list.d/ubuntu.sources instead of /etc/apt/sources.list. Be aware that images which contain duplicated sources defined /etc/apt/sources.list and /etc/apt/sources.list.d/ubuntu.sources would also generate warnings from apt like
LP: #2045086
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/2048129/+subscriptions
More information about the foundations-bugs
mailing list