Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AArch64 Simplied-Provisioner partition type listed as Empty #48

Closed
pcdubs opened this issue Jun 5, 2024 · 3 comments · Fixed by osbuild/images#735
Closed

AArch64 Simplied-Provisioner partition type listed as Empty #48

pcdubs opened this issue Jun 5, 2024 · 3 comments · Fixed by osbuild/images#735
Assignees
Labels
bug Something isn't working osbuild-related When the issue involves osbuild

Comments

@pcdubs
Copy link
Member

pcdubs commented Jun 5, 2024

When using the IoT simplified-provisioning tool on AArch64, the installation is successful but fails to boot and drops to a grub prompt.

Inspecting the included image on the iso ( https://kojipkgs.fedoraproject.org/compose/iot/Fedora-IoT-40-20240604.0/compose/IoT/aarch64/iso/Fedora-IoT-provisioner-40-20240604.0.aarch64.iso )

fdisk -l image.raw 
Disk image.raw: 10 GiB, 10737418240 bytes, 20971520 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xc1748067

Device     Boot   Start      End  Sectors  Size Id Type
image.raw1 *       2048  1028095  1026048  501M  6 FAT16
image.raw2      1028096  3125247  2097152    1G  0 Empty
image.raw3      3125248 20971519 17846272  8.5G  0 Empty

The partitions are missing the partition type, using fdisk to change it to Linux:

Device     Boot   Start      End  Sectors  Size Id Type
image.raw1 *       2048  1028095  1026048  501M  6 FAT16
image.raw2      1028096  3125247  2097152    1G 83 Linux
image.raw3      3125248 20971519 17846272  8.5G 83 Linux

Boots as expected in a VM.

@pcdubs pcdubs added bug Something isn't working osbuild-related When the issue involves osbuild labels Jun 5, 2024
@pcdubs pcdubs self-assigned this Jun 5, 2024
@auphof
Copy link

auphof commented Jun 6, 2024

Hello @pcdubs , I was just writing up the same issue and before pressing submit I thought I better check again I am not duplicating
I confirm the same Empty partition types with the following and no customization of the Grub creates the disk image but fails first boot going into grub console

sudo virt-install --connect qemu:///system \
        --name $VM_NAME \
        --os-variant 'fedora40' \
        --boot loader=/usr/share/AAVMF/AAVMF_CODE.fd,loader_ro=yes,loader_type=pflash,nvram_template=/usr/share/AAVMF/AAVMF_VARS.fd \
        --vcpus 2 --memory 3072 \
        --network network=default,model=virtio \
        --disk path=/var/lib/libvirt/images/$VM_NAME.img,size=15,format=qcow2,bus=virtio \
        --cdrom /media/fedora/Fedora-IoT-provisioner-40-20240422.3.aarch64.iso

at the grub prompt attempt to list the partitions

grub> ls
(memdisk) (proc) (hd0) (hd0,msdos1) (cd0) 

only 1 partition is visible

mount the disk image and look at the disk partitions i notice on the failed first boot (simplified provision on aarch64 ) partitions look as follow

# fdisk -l ...   
....
Disklabel type: dos
Disk identifier: 0xc1748067

Device      Boot   Start      End  Sectors  Size Id Type
/dev/nbd0p1 *       2048  1028095  1026048  501M  6 FAT16
/dev/nbd0p2      1028096  3125247  2097152    1G  0 Empty
/dev/nbd0p3      3125248 20971519 17846272  8.5G  0 Empty

I also note the disk label type is dos as apposed to gpt on a working x86_64 or an aarch64 vm based on the ostree iso

@pcdubs
Copy link
Member Author

pcdubs commented Jun 6, 2024

Thanks @auphof .

Currently AArch64 gets set to dos to support the Raspberry Pi- which isn't a target for simplified-provisioning (yet), so I think it makes sense to change it to gpt as well.

@pcdubs
Copy link
Member Author

pcdubs commented Oct 29, 2024

Fixed.

@pcdubs pcdubs closed this as completed Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working osbuild-related When the issue involves osbuild
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants