LXD snap not being installed from the right channel when running unminimize
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
livecd-rootfs (Ubuntu) |
Fix Released
|
Undecided
|
Utkarsh Gupta | ||
Jammy |
Fix Released
|
Undecided
|
Unassigned | ||
Lunar |
Won't Fix
|
Undecided
|
Unassigned |
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)
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=
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:/
which defaults to the latest/stable channel. However, whilst working on enhancing unminimize, it was observed that we install this snap from the stable/
This was also noted as a failure when running the CTF tests:
`lxd installed from latest/stable, not stable/
Related branches
- Thomas Parrott (community): Approve
- Philip Roche (community): Approve
- Canonical Foundations Team: Pending requested
-
Diff: 34 lines (+10/-2)2 files modifieddebian/changelog (+6/-0)
live-build/auto/build (+4/-2)
- Simon Déziel (community): Needs Fixing
- Philip Roche (community): Approve
- Canonical Foundations Team: Pending requested
-
Diff: 54 lines (+14/-6)2 files modifieddebian/changelog (+7/-0)
live-build/auto/build (+7/-6)
- Andrew Cloke (community): Approve
- Steve Langasek: Abstain
- Philip Roche (community): Approve
-
Diff: 54 lines (+14/-6)2 files modifieddebian/changelog (+7/-0)
live-build/auto/build (+7/-6)
- Steve Langasek: Approve
- Philip Roche (community): Approve
-
Diff: 16 lines (+3/-2)1 file modifiedlive-build/auto/build (+3/-2)
Changed in livecd-rootfs (Ubuntu): | |
assignee: | nobody → Utkarsh Gupta (utkarsh) |
description: | updated |
description: | updated |
description: | updated |
Changed in livecd-rootfs (Ubuntu Jammy): | |
status: | Incomplete → New |
Changed in livecd-rootfs (Ubuntu Lunar): | |
status: | Incomplete → New |
description: | updated |
tags: |
added: verification-done removed: verification-needed |
This bug was fixed in the package livecd-rootfs - 23.10.44
---------------
livecd-rootfs (23.10.44) mantic; urgency=medium
* Fix the subarch used in the hook to identify images for sifive
unmatched. LP: #2037060.
-- Steve Langasek <email address hidden> Fri, 22 Sep 2023 10:58:57 -0700