[Bug 2036725] Re: LXD snap not being installed from the right channel when running unminimize
Launchpad Bug Tracker
2036725 at bugs.launchpad.net
Wed Jan 17 11:44:47 UTC 2024
This bug was fixed in the package livecd-rootfs - 2.765.34
---------------
livecd-rootfs (2.765.34) jammy; urgency=medium
* Remove comments in the debian/control dependencies as it was causing the
package build to fail.
livecd-rootfs (2.765.33) jammy; urgency=medium
[ Steve Langasek ]
* Use losetup instead of kpartx to resolve race conditions in riscv64
image builds. LP: #2045797.
[ Utkarsh Gupta ]
* unminimize: Use lxd-installer to install LXD itself (LP: #2036725)
livecd-rootfs (2.765.32) jammy; urgency=medium
[ Heinrich Schuchardt ]
* arm: fix console parameter for ARM cloud-images (LP: #2036730)
livecd-rootfs (2.765.31) jammy; urgency=medium
[ John Chittum ]
* fix: add 6.5 kernel apparmor features to livecd-rootfs based on
features of 6.5 in ubuntu/mantic. This will roll as HWE. (LP: #2037567)
livecd-rootfs (2.765.30) jammy; urgency=medium
* Enable snap preseeding with ppc64el images where /boot/vmlinux is used
instead of /boot/vmlinuz. (LP: #2038957)
livecd-rootfs (2.765.29) jammy; urgency=medium
[ Steve Langasek ]
* The chroot tmpfs mount should only be /var/lib/apt/lists, not
/var/lib/apt; the latter breaks changes to /var/lib/apt/extended_states.
(LP: #2036195).
livecd-rootfs (2.765.28) jammy; urgency=medium
* Fix unminimize to correctly list packages. (LP: #1996489)
* Install LXD snap from stable/ubuntu-<version> channel. (LP: #2036725)
livecd-rootfs (2.765.27) jammy; urgency=medium
[ Thomas Bechtold ]
* Do not modify /etc/ssh/sshd_config for ubuntu-cpc
project builds (LP: #1968873)
-- Ćukasz 'sil2100' Zemczak <lukasz.zemczak at ubuntu.com> Mon, 15 Jan
2024 16:41:18 +0100
** Changed in: livecd-rootfs (Ubuntu Jammy)
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/2036725
Title:
LXD snap not being installed from the right channel when running
unminimize
Status in livecd-rootfs package in Ubuntu:
New
Status in livecd-rootfs source package in Jammy:
Fix Released
Status in livecd-rootfs source package in Lunar:
Fix Committed
Bug description:
[Impact]
========
There's a step in `unminimize` where it installs the LXD snap. The
problem is that it doesn't mention any channel where to install it
from. So often it happens that we have the LXD snap on 20.04 or 22.04
from the latest/stable channel (as that's the default!).
However, we should be installing this from stable/ubuntu-20.04 or
stable/ubuntu-22.04 (or equivalent) channel.
[Test Plan]
===========
1. Create an image with the changes:
$ ubuntu-bartender --build-provider gce --hook-extras-dir "$(pwd)/cpc_packaging.extra" --livecd-rootfs-branch ubuntu/jammy -- --series jammy --project ubuntu-cpc --image-target gce --subproject minimized
2. Boot into that image. Ensure it's a minimized image.
3. Run update and unminimize.
# apt update
# unminimize
4. Check the snap list to see the right channel being used.
# snap list | grep 'lxd' | awk '{print $4}'
[Where Problems Could Occur]
=============================
There's very smol room for error especially when the patch only
introduces the following to the snap install call:
--channel="stable/ubuntu-$VERSION_ID"
But things might behave differently IFF someone has tampered their
/etc/os-release OR/AND fiddled with the unminimize script to do a
different thing. :)
[OG Bug Report]
===============
In the past, when running unminimize, we'd directly do:
snap install lxd
(cf: https://git.launchpad.net/livecd-rootfs/tree/live-build/auto/build#n322)
which defaults to the latest/stable channel. However, whilst working
on enhancing unminimize, it was observed that we install this snap
from the stable/ubuntu-<version> channel instead.
This was also noted as a failure when running the CTF tests:
`lxd installed from latest/stable, not stable/ubuntu-23.10`
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/2036725/+subscriptions
More information about the foundations-bugs
mailing list