ubuntu-image command crash on 22.04 Jammy LxD VM
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Image |
Fix Released
|
High
|
Unassigned |
Bug Description
1. Using stable channel of ubuntu-image (1.11+snap1):
DEBUG:ubuntu-
ERROR:ubuntu-
ERROR:ubuntu-image:
ERROR:ubuntu-
sudo: a password is required
2. When switch to use edge channel (2.1+snap7), there is no previous error but another:
[10] populate_
Error: Error running mkfs with content: exec: "mkfs.vfat": executable file not found in $PATH
[Reproduction steps]
lxc launch images:
lxc exec iot-jammy-test bash
su - ubuntu
mkdir work
cd work
# Install packages required for building image.
sudo apt-get install snapd wget git snapcraft
sudo snap install ubuntu-image --classic
# Build gadget
git clone -b classic https:/
cd pc-amd64-gadget
make
cd -
# Download base image
wget -O rootfs.tar.xz https:/
mkdir cloud-image
cd cloud-image
sudo tar Jxf ../rootfs.tar.xz
cd -
# Build image
$ sudo /snap/bin/
---
https:/
description: | updated |
Changed in ubuntu-image: | |
importance: | Undecided → High |
Changed in ubuntu-image: | |
status: | New → Fix Committed |
status: | Fix Committed → Fix Released |
Cannot reproduce the issue on 20.04 Focal LxD VM.
ubuntu-image: 1.11+snap1
Here is the log: image:- > [ 0] make_temporary_ directories image:- > [ 1] prepare_gadget_tree image:- > [ 2] prepare_image image:- > [ 3] load_gadget_yaml image:- > [ 4] populate_ rootfs_ contents image:- > [ 5] populate_ rootfs_ contents_ hooks image:- > [ 6] generate_disk_info image:- > [ 7] calculate_ rootfs_ size image:- > [ 8] pre_populate_ bootfs_ contents image:- > [ 9] populate_ bootfs_ contents image:No bootloader bits prepared in the rootfs - skipping boot copies. image:- > [10] prepare_filesystems image:- > [11] populate_ filesystems image:- > [12] make_disk image:- > [13] generate_manifests image:- > [14] finish image:- > [15] close
DEBUG:ubuntu-
DEBUG:ubuntu-
DEBUG:ubuntu-
DEBUG:ubuntu-
DEBUG:ubuntu-
DEBUG:ubuntu-
...
DEBUG:ubuntu-
DEBUG:ubuntu-
DEBUG:ubuntu-
DEBUG:ubuntu-
DEBUG:ubuntu-
DEBUG:ubuntu-
DEBUG:ubuntu-
DEBUG:ubuntu-
DEBUG:ubuntu-
DEBUG:ubuntu-
DEBUG:ubuntu-