kernel refresh fail with non-gpt partitioning
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Fix Committed
|
High
|
Alfonso Sanchez-Beato |
Bug Description
We have a device where the kernel refresh is now failing. I thought this might be a kernel issue at first, but I was alerted to a recent change in snapd that might be the cause.
core 16-2.59.1 15151 latest/beta canonical✓ core,ignore-
I reverted to the core in stable and it also seems to be affected by this:
core 16-2.57.1 13745 latest/stable canonical✓ core
$ snap --version
snap 2.57.1
snapd 2.57.1
series 16
kernel 4.4.0-1054-cascade
$ sudo snap refresh
error: cannot perform the following tasks:
Update assets from kernel "XXXXX-kernel" (124) (cannot read current gadget snap details: invalid volume "u-boot-XXXXX": invalid structure: GPT header or GPT partition table overlapped with structure "u-boot"
In this case, it's an older uc16 based device that did not use gpt partitioning. Here's a section of the gadget.yaml:
...
structure:
- name: u-boot
type: bare
size: 512000
offset: 0
content:
...
Changed in snapd: | |
status: | New → Fix Committed |
importance: | Undecided → Critical |
importance: | Critical → High |
assignee: | nobody → Alfonso Sanchez-Beato (alfonsosanchezbeato) |
This is being addressed by https:/ /github. com/snapcore/ snapd/pull/ 12775