Bug 2406974

Summary: stop setting XBOOTLDR partition type GUID on /boot volumes, unless VFAT
Product: [Fedora] Fedora Reporter: Chris Murphy <bugzilla>
Component: python-blivetAssignee: Vojtech Trefny <vtrefny>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 43CC: a.badger, alpha, anaconda-maint, blivet-maint-list, kkoukiou, mkolman, rvykydal, vtrefny, w
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-blivet-3.13.1-1.fc44 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-11-28 08:53:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Chris Murphy 2025-10-29 05:32:13 UTC
Anaconda currently has parted setting "bls_boot" flag on the partition assigned to the /boot mount point, resulting in partition type GUID BC13C2FF-59E6-4262-A352-B275FD6F7172 being set in GPT disks, and 0xEA set on MBR disks.

These type codes are defined in the Boot Loader Specification
https://uapi-group.org/specifications/specs/boot_loader_specification/

As a result of:
https://github.com/uapi-group/specifications/pull/170
https://github.com/uapi-group/specifications/pull/174
https://github.com/systemd/systemd/pull/39267

When /boot is used in conformance with the BLS:

* XBOOTLDR must be vfat

* /boot, /efi, and /boot/efi entries in fstab are omitted (systemd-gpt-auto-generator handles the mounting of ESP and XBOOTLDR on demand)

The idea is XBOOTLDR is really an extension of the EFI system partition (ESP), in case the ESP is too small contain the kernels, initramfs, and boot loader configuration files indicated in the spec. And therefore both ESP and XBOOTLDR must be "vfat" according to these spec clarifications.

I think for now it's enough to stop setting the type codes on the boot partition to avoid confusion with fully BLS compliant setups. And instead use generic Linux partition type codes:
0FC63DAF-8483-4772-8E79-3D69D8477DE4 
0x83

Future:

Question 1: should anaconda set these partition type codes anytime the /boot mount point volume format is set to "vfat"? Or only if an inst. or kickstart command is set to indicate full compliance with the BLS spec is desired? Full compliance has further rules such as omitting /boot and /boot/efi from fstab, and the organization of files and directories on these volumes.

Question 2: should inst.sd-boot imply full BLS compliance? Probably. But not necessarily vice versa since other bootloader are working on enabling BLS support.

Comment 1 Vojtech Trefny 2025-11-04 13:44:53 UTC
upstream PR: https://github.com/storaged-project/blivet/pull/1434

> Anaconda currently has parted setting "bls_boot" flag on the partition assigned to the /boot mount point, resulting in partition type GUID BC13C2FF-59E6-4262-A352-B275FD6F7172 being set in GPT disks, and 0xEA set on MBR disks.

We are not using the parted flag here, we are setting the GUID directly so this should be a problem only with GPT. I checked with MBR/MSDOS partition table and partition type for /boot is not set 0xEA.