Skip to content

Conversation

@supakeen
Copy link
Member

@supakeen supakeen commented Oct 13, 2025

Long bit of debugging went ahead of this, for full details see 1.

We want to inhibit systemd-gpt-auto-generator from running on ISOs when they are booted in UEFI mode as it won't be able to find the root partition. This in turn causes the boot to fail.

When systemd-gpt-auto-generator is prevented from running the boot succeeds so this is likely an ordering issue in when/how things get mounted by dracut.

This only affects (probably accidentally) non-live media as live-media follows a different path to mount its root and probably runs a bit earlier.

The solution here isn't a long-term thing though it's also not bad to leave it in as there's never a need to run systemd-gpt-auto-generator on ISOs as far as I'm aware.

See: osbuild/bootc-image-builder#1073 for bootc.


Draft as I want to have some discussion if we should just blanket apply this everywhere as the problem is likely to pop up in CentOS/RHEL as well.

Long bit of debugging went ahead of this, for full details see [1].

We want to inhibit `systemd-gpt-auto-generator` from running on ISOs
when they are booted in UEFI mode as it won't be able to find the root
partition. This in turn causes the boot to fail.

When `systemd-gpt-auto-generator` is prevented from running the boot
succeeds so this is likely an ordering issue in when/how things get
mounted by `dracut`.

This only affects (probably accidentally) non-live media as live-media
follows a different path to mount its root and probably runs a bit
earlier.

The solution here isn't a long-term thing though it's also not bad to
leave it in as there's never a need to run `systemd-gpt-auto-generator`
on ISOs as far as I'm aware.

[1]: osbuild#1947 (comment)

Signed-off-by: Simon de Vlieger <[email protected]>
@supakeen supakeen requested a review from a team as a code owner October 13, 2025 05:16
@supakeen supakeen requested review from achilleas-k, bcl, lzap, mvo5 and thozza and removed request for lzap and mvo5 October 13, 2025 05:16
@supakeen supakeen marked this pull request as draft October 13, 2025 05:19
@supakeen supakeen changed the title fedora: disable gpt-auto for ISOs fedora: disable gpt-auto for ISOs (HMS-9524) Oct 13, 2025
@supakeen
Copy link
Member Author

Closed in favor of #1949.

@supakeen supakeen closed this Oct 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant