ubuntu-image 3.1 fails to properly prepare gadget tree

Bug #2045062 reported by Erich Eickmeyer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Image
Fix Released
High
Paul Mars

Bug Description

I'm getting the following error:

$ sudo ubuntu-image classic -w workdir/ -O output/ ubuntu-images/ubuntu-pi-arm64.yaml
[0] parse_image_definition
[1] calculate_states
[2] make_temporary_directories
[3] determine_output_directory
[4] build_gadget_tree
[5] prepare_gadget_tree
[6] load_gadget_yaml
Error: Error copying gadget.yaml to workdir/gadget.yaml: unable to open workdir/unpack/gadget/meta/gadget.yaml: open workdir/unpack/gadget/meta/gadget.yaml: no such file or directory
The gadget.yaml file is expected to be located in a "meta" subdirectory of the provided built gadget directory.

name: ubuntu-image
summary: Create Ubuntu images
publisher: Canonical✓
store-url: https://snapcraft.io/ubuntu-image
contact: <email address hidden>
license: unset
description: |
  ubuntu-image is a tool used for creation of various Ubuntu preinstalled images, both classic and
  snap-based.
commands:
  - ubuntu-image
snap-id: 4RW78vIax8JW5S8HkYsa8lNbv68uPaYX
tracking: latest/stable
refresh-date: today at 10:10 PST
channels:
  latest/stable: 3.1 2023-11-28 (658) 40MB classic
  latest/candidate: 3.1 2023-11-28 (658) 40MB classic
  latest/beta: 3.1 2023-11-28 (658) 40MB classic
  latest/edge: 3.1+snap3 2023-11-28 (668) 41MB classic
  2/stable: 2.2+snap10 2023-04-06 (322) 8MB classic
  2/candidate: 2.2+snap10 2023-04-06 (322) 8MB classic
  2/beta: 2.2+snap10 2023-04-06 (322) 8MB classic
  2/edge: 2.2+snap10 2023-04-06 (322) 8MB classic
installed: 3.1 (658) 40MB classic

description: updated
affects: ubuntu-image (Ubuntu) → ubuntu-image
Revision history for this message
Paul Mars (upils) wrote :

Hello Erich,

I confirm I am able to reproduce. We are looking into it.

Changed in ubuntu-image:
status: New → In Progress
assignee: nobody → Paul Mars (upils)
Revision history for this message
Paul Mars (upils) wrote :
Revision history for this message
Paul Mars (upils) wrote :

https://launchpad.net/snap-pi is now fixed. I tested again and the build is working fine.

Changed in ubuntu-image:
status: In Progress → Fix Released
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.