[Bug 1968205] Re: errors with mult-volume gadgets
Launchpad Bug Tracker
1968205 at bugs.launchpad.net
Wed Apr 13 23:43:53 UTC 2022
This bug was fixed in the package ubuntu-image - 2.2+22.04ubuntu2
---------------
ubuntu-image (2.2+22.04ubuntu2) jammy; urgency=medium
* Fix failing autopkgtests:
- Restrict test using snap prepare-image --arch=amd64 to only run on amd64
- Increase size of 4k volume to have enough sectors to be valid fat32
-- William 'jawn-smith' Wilson <jawn-smith at ubuntu.com> Wed, 13 Apr
2022 10:49:05 -0500
** Changed in: ubuntu-image (Ubuntu)
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-image in Ubuntu.
https://bugs.launchpad.net/bugs/1968205
Title:
errors with mult-volume gadgets
Status in Ubuntu Image:
In Progress
Status in ubuntu-image package in Ubuntu:
Fix Released
Bug description:
The logic is subtly different in the Python and Go versions of ubuntu-
image for populating bootfs contents. With multi volume gadgets, only
the system volume is processed by this function. This needs to be
fixed and tested with the following gadget.yaml:
```
volumes:
pc:
# bootloader configuration is shipped and managed by snapd
bootloader: grub
structure:
- name: mbr
type: mbr
size: 440
update:
edition: 1
content:
- image: pc-boot.img
- name: BIOS Boot
type: DA,21686148-6449-6E6F-744E-656564454649
size: 1M
offset: 1M
offset-write: mbr+92
update:
edition: 2
content:
- image: pc-core.img
- name: ubuntu-seed
role: system-seed
filesystem: vfat
# UEFI will boot the ESP partition by default first
type: EF,C12A7328-F81F-11D2-BA4B-00A0C93EC93B
size: 1200M
update:
edition: 2
content:
- source: grubx64.efi
target: EFI/boot/grubx64.efi
- source: shim.efi.signed
target: EFI/boot/bootx64.efi
- name: ubuntu-boot
role: system-boot
filesystem: ext4
type: 83,0FC63DAF-8483-4772-8E79-3D69D8477DE4
# whats the appropriate size?
size: 750M
update:
edition: 1
content:
- source: grubx64.efi
target: EFI/boot/grubx64.efi
- source: shim.efi.signed
target: EFI/boot/bootx64.efi
- name: ubuntu-save
role: system-save
filesystem: ext4
type: 83,0FC63DAF-8483-4772-8E79-3D69D8477DE4
size: 16M
- name: ubuntu-data
role: system-data
filesystem: ext4
type: 83,0FC63DAF-8483-4772-8E79-3D69D8477DE4
size: 2G
foo:
structure:
- name: barething
type: bare
size: 4096
content:
- image: foobare.img
- name: no-fs-partition
type: 84,A11D2A7C-D82A-4C2F-8A01-1805240E6626
size: 4096
content:
- image: foowithoutfs.img
- name: some-filesystem
filesystem: ext4
type: 83,0FC63DAF-8483-4772-8E79-3D69D8477DE4
size: 100M
content:
- source: foo.txt
target: foo.txt
- name: foounspecifiedfs
type: 83,0FC63DAF-8483-4772-8E79-3D69D8477DE4
size: 100M
content:
- image: foowithfs-v1.img
```
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-image/+bug/1968205/+subscriptions
More information about the foundations-bugs
mailing list