#346 current (F-35+) disk layout broken for ppc64le
Closed: fixed 2 years ago by ngompa. Opened 2 years ago by sharkcz.

After switching the disk layout for the cloud image to gpt + btrfs (for https://fedoraproject.org/wiki/Changes/FedoraCloudHybridBoot) the image creation is broken on ppc64le. The root cause is that there is no "PReP" partition that's mandatory on "pseries"-class systems (like VMs).

see e.g. https://koji.fedoraproject.org/koji/taskinfo?taskID=74491564


Would overwriting the bios boot partition with a PreP partition work here? If so, what else do I need for POWER? And what about s390x, which is also built in that task?

Metadata Update from @ngompa:
- Issue tagged with: IBM

2 years ago

Metadata Update from @ngompa:
- Issue tagged with: OpenStack

2 years ago

Might be able to pick up a tip or two from https://github.com/coreos/coreos-assembler/blob/main/src/create_disk.sh#L113-L154

It won't directly apply, but might be able to glean something from it.

The struggle is real here: I can't use %ifarch or similar with the declarative aspects of kickstart...

Would overwriting the bios boot partition with a PreP partition work here? If so, what else do I need for POWER? And what about s390x, which is also built in that task?

yes, I believe swapping biosboot with PReP would work

re s390x - interestingly it has no problem with the new layout, but the bootloader is block number oriented, so it's sufficient to have /boot somewhere

The struggle is real here: I can't use %ifarch or similar with the declarative aspects of kickstart...

I haven't tried, but can't we add the PReP partition to the existing ones? I guess it defaults to 4MB or such ...

Metadata Update from @davdunc:
- Issue tagged with: meeting

2 years ago

It doesn't let you set both BIOS+EFI with GPT for x86 architectures. If it did, I would have used that originally...

just thinking loud, not even

clearpart --all --initlabel --disklabel=gpt
reqpart          # to create the EFI stuff
part biosboot  --size=1    --fstype=biosboot
...

would work, if the VM is EFI-based?

other option would be to open an RFE against pykickstart/blivet/...

# Partition clearing information
clearpart --all --initlabel --disklabel=gpt
# Disk partitioning information
part prepboot --fstype="prepboot" --size=4
part biosboot --fstype="biosboot" --size=1
part /boot/efi --fstype="efi" --size=100
part /boot --fstype="ext4" --size=500 --label=boot
part btrfs.007 --fstype="btrfs" --grow --size=2000
btrfs none --label=fedora btrfs.007
btrfs /home --subvol --name=home LABEL=fedora
btrfs / --subvol --name=root LABEL=fedora

gave me a working VM on ppc64le

other option would be to open an RFE against pykickstart/blivet/...

We should do that. I'd love to simplify this...

Could any one try the workaround with prepboot added to the list of all possible boot partitions on x86? I believe it could be a workaround until there is a proper fix. We need a solution for ppc64le before F-35 GA ...

I can add it to our kickstart and see if it helps. 1MB of wasted space isn't a huge deal even if it sucks balls...

thanks, it's 4MB, but still shouldn't hurt

Metadata Update from @ngompa:
- Issue assigned to ngompa

2 years ago

Metadata Update from @ngompa:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

2 years ago

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #837 Merged 2 years ago
  • #836 Merged 2 years ago