Failed to update dtb if the partition is not mounted
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OEM Priority Project |
New
|
Undecided
|
Unassigned | ||
snapd |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
I found that the device tree can't be updated correctly if the partition is not mounted first, and the snapd will complain the following error message
"""
error: cannot perform the following tasks:
- Update assets from kernel "mediatek-
"""
Please see the following gadget.yaml that I am using
"""
volumes:
pc:
schema: gpt
# bootloader configuration is shipped and managed by snapd
bootloader: grub
structure:
# In Mediatek genio chipset platforms, the 1st bootloader is the prebuilt fip.bin
# fip.bin contains BL31 TF-A (Trusted-Firmware A), BL32 OP-TEE OS, and BL33 U-Boot
- name: bootloaders
offset: 524288
size: 4M
type: EBD0A0A2-
- name: bootloaders_b
size: 4M
type: EBD0A0A2-
- name: firmware
filesystem: vfat
type: 384E979B-
size: 32M
content:
- source: $kernel:
target: FIRMWARE/
- name: firmware_b
filesystem: vfat
type: 384E979B-
size: 32M
content:
- source: $kernel:
target: FIRMWARE/
- name: dramk
size: 524288
type: EBD0A0A2-
- name: misc
size: 1M
type: EBD0A0A2-
- name: capsule
filesystem: vfat
type: EF,C12A7328-
size: 32M
- name: bootassets
size: 32M
type: EBD0A0A2-
- name: ubuntu-seed
role: system-seed
filesystem: vfat
# UEFI will boot the ESP partition by default first
type: EF,C12A7328-
size: 1200M
update:
edition: 1
content:
- source: grubaa64.efi
target: EFI/boot/
- source: shim.efi.signed
target: EFI/boot/
- name: ubuntu-boot
role: system-boot
filesystem: ext4
type: 83,0FC63DAF-
# whats the appropriate size?
size: 750M
update:
edition: 1
content:
- source: grubaa64.efi
target: EFI/boot/
- source: shim.efi.signed
target: EFI/boot/
- name: ubuntu-save
role: system-save
filesystem: ext4
type: 83,0FC63DAF-
size: 32M
- name: ubuntu-data
role: system-data
filesystem: ext4
type: 83,0FC63DAF-
size: 1G
"""
tags: | added: oem-priority originate-from-2030864 |