Comment 2 for bug 2064322

Revision history for this message
Rémy MARTIN (rmartin013) wrote :

Hey Paul,

Thanks for this feedback. It seems this error is related to the gadget snap. I made a try building for instance https://git.launchpad.net/ubuntu-images/tree/ubuntu-server-pc-arm64.yaml?h=noble which uses the very same gadget snap, and the result slightly differs

ubuntu@ubuntu:~/ubuntu-images/output$ parted ../output-noble/ubuntu-24.04-preinstalled-server-arm64.img print
WARNING: You are not superuser. Watch out for permissions.
Warning: Unable to open /home/ubuntu/ubuntu-images/output-noble/ubuntu-24.04-preinstalled-server-arm64.img read-write (Permission denied).
/home/ubuntu/ubuntu-images/output-noble/ubuntu-24.04-preinstalled-server-arm64.img has been opened read-only.
Error: The backup GPT table is not at the end of the disk, as it should be. Fix, by moving the backup to the end (and removing the old backup)?
Fix/Ignore? ^C
Warning: Not all of the space available to /home/ubuntu/ubuntu-images/output-noble/ubuntu-24.04-preinstalled-server-arm64.img appears to be used, you can fix the GPT to use all of the space (an extra 5637383
blocks) or continue with the current setting?
Fix/Ignore? ^C
Model: (file)
Disk /home/ubuntu/ubuntu-images/output-noble/ubuntu-24.04-preinstalled-server-arm64.img: 2958MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
 1 1049kB 53.5MB 52.4MB fat32 EFI System boot, esp
 2 53.5MB 2958MB 2904MB ext4 writable

But we don't see that on the arm64 generic server image. Do you know how is it build (image definition, gadget, u-i arguments)?