Bug 2406974 - stop setting XBOOTLDR partition type GUID on /boot volumes, unless VFAT
Summary: stop setting XBOOTLDR partition type GUID on /boot volumes, unless VFAT
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-blivet
Version: 43
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Vojtech Trefny
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-10-29 05:32 UTC by Chris Murphy
Modified: 2025-11-28 08:53 UTC (History)
9 users (show)

Fixed In Version: python-blivet-3.13.1-1.fc44
Clone Of:
Environment:
Last Closed: 2025-11-28 08:53:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.