Skip to content

Teach initrd to find root partition on the same device as the boot or ESP one #2026

@travier

Description

@travier

Describe the enhancement

When booting up, we want the initrd to pick the right root partition from the ones available on potentially multiple disks. The challenge is on the first boot as we generally start from a generic image with generic UUIDs and do not have a clear root UUID on the kernel command line.

Thus we want to implement some logic in the initrd to make sure that we would pick the root partition from the same disk as the partition that was used to boot, either in BIOS or EFI mode.

For the EFI mode, this logic is similar (or exactly like) systemd-gpt-auto-generator .

We also want this logic to use it for every boot in the UKI case, were we can not update the kernel command line to set a root=$UUID argument and where we want to instead rely on PART UUID from the Discoverable Partition Specification.

See also:

This should help with: https://issues.redhat.com/browse/OCPBUGS-61102

System details

N/A

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions