[UC] not able to copy files to vfat partition if partition size is less than 33M
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OEM Priority Project |
Confirmed
|
High
|
Aristo Chen | ||
snapd |
New
|
Undecided
|
Unassigned |
Bug Description
[Summary]
when using ubuntu-image to build ubuntu core image, there will be an issue copying file to vfat partition if the partition size is less than 33M
[Error message]
env UBUNTU_
[0] make_temporary_
[1] determine_
[2] prepare_image
WARNING: proceeding to download snaps ignoring validations, this default will change in the future. For now use --validation=
WARNING: the kernel for the specified UC20+ model does not carry assertion max formats information, assuming possibly incorrectly the kernel revision can use the same formats as snapd
WARNING: "mediatek-aiot" installed from local snaps disconnected from a store cannot be refreshed subsequently!
Copying "./snapd_
Copying "./mediatek-
Copying "./core22_821.snap" (core22)
Copying "./mediatek-
[3] load_gadget_yaml
[4] set_artifact_names
[5] populate_
[6] generate_disk_info
[7] calculate_
[8] populate_
[9] populate_
Error: Error running mkfs with content: cannot populate vfat filesystem with contents: No directory slots
[sample gadget.yaml that have issue]
volumes:
pc:
schema: gpt
bootloader: grub
structure:
- name: firmware
filesystem: vfat
type: 384E979B-
size: 32M
content:
- source: shimaa64.efi.signed
target: EFI/BOOT/
- name: ubuntu-seed
role: system-seed
filesystem: vfat
type: EF,C12A7328-
size: 1200M
content:
- source: $kernel:
target: FIRMWARE/
- name: ubuntu-boot
role: system-boot
filesystem: ext4
type: 83,0FC63DAF-
size: 750M
- 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
[Other info]
- If the firmware partition filesystem type is changed to ext4, then there is no issue
- If the size of the firmware partition is greater than or equal to 33M, then there is no issue
[Other info - snap list]
$ snap list
Name Version Rev Tracking Publisher Notes
core18 20230530 2785 latest/stable canonical✓ base
core20 20230622 1974 latest/stable canonical✓ base
core22 20230703 817 latest/stable canonical✓ base
lxd 5.0.2-838e1b2 24322 5.0/stable/… canonical✓ -
snapcraft 7.5.0 9510 7.x/stable canonical✓ classic
snapd 2.59.5 19457 latest/stable canonical✓ snapd
ubuntu-image 3.0+snap4 500 latest/stable canonical✓ classic
yq v4.34.2 2219 latest/stable mikefarah -
Changed in oem-priority: | |
assignee: | nobody → Aristo Chen (aristochen) |
importance: | Undecided → High |
status: | New → Confirmed |
tags: | added: oem-pr |
tags: |
added: oem-priority removed: oem-pr |
tags: | added: originate-from-2028911 |
This might be related to https:/ /bugs.archlinux .org/task/ 71547 - we have version 4.0.32 in 22.04 so the fixses from the attached patch may help but it will be a bit tricky to test it.