Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for root=boot (with EFI) and writing UUID file #562

Merged
merged 1 commit into from
Nov 19, 2023

Conversation

cgwalters
Copy link
Member

@cgwalters cgwalters commented Nov 10, 2023

In FCOS we never tried to support root=boot, but for bootupd
to do alongside installs in the general case we have to.

There were two things to fix here:

  • Tweak the EFI "trampoline" to check for both $prefix/grub.cfg and $prefix/boot/grub.cfg
  • Add support for writing the boot UUID into both places

(This avoids higher level tools like bootupd needing to know
about how to find the EFI vendor dir)

This more fully replicates the logic in coreos-installer.


Copy link

openshift-ci bot commented Nov 10, 2023

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@cgwalters cgwalters force-pushed the write-uuid-install branch 2 times, most recently from d40ebdc to 4e7665f Compare November 10, 2023 22:55
In FCOS we never tried to support root=boot, but for bootupd
to do alongside installs in the general case we have to.

There were two things to fix here:

 - Tweak the EFI "trampoline" to check for both $prefix/grub.cfg and $prefix/boot/grub.cfg
 - Add support for writing the boot UUID into both places

(This avoids higher level tools like bootupd needing to know
 about how to find the EFI vendor dir)

Then the bigger issue here is that we need to support invoking
`efibootmgr` to re-synchronize the firmware.  This is particularly
important in cases like bootc "alongside" installs where we're
taking over the target OS.
@cgwalters cgwalters marked this pull request as ready for review November 19, 2023 14:49
@cgwalters cgwalters merged commit eff31e9 into coreos:main Nov 19, 2023
5 of 8 checks passed
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.

None yet

1 participant