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 test support of bootupd EUFI entry insertion #1260

Merged

Conversation

jkonecny12
Copy link
Member

Enhance existing test rpm-ostree-container-bootc to check for UEFI entry insertion on the first disk.
Add a new test working similar to other container tests but with bootloader --leavebootorder which will disable UEFI entry insertion.

To be able to do this add support to run VM in UEFI mode. And fix one bug during the path which caused troubles here.

The bootc test will be enabled only for Fedora until rhinstaller/anaconda#5760 and rhinstaller/anaconda#5761 are merged. The leavebootorder test should work all the time because UEFI entry just won't be inserted anyway on RHEL 9 and 10

@jkonecny12
Copy link
Member Author

/test-tmt

@jkonecny12
Copy link
Member Author

/test-os-variants

Copy link
Contributor

@rvykydal rvykydal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thank you.

With this the test VM can run with UEFI support.
In fast path when reading ./discinfo we returned Fedora but when reading
os-release it is returned fedora. This capital "F" makes our conditions
to fail.
@jkonecny12 jkonecny12 force-pushed the add-bootc-leavebootorder-test branch from 0dba74e to a773def Compare July 25, 2024 13:25
@jkonecny12
Copy link
Member Author

UPDATED:

  • Add new test *-uefi which is a copy of bootc test with the UEFI mode
  • Remove bootc changes a leave the test as it was

The bootc test won't work in UEFI mode for some reason and honestly maybe that is expected because UEFI entry is not created by bootupd. So to be able to cover all the cases let's have another test for uefi which will be used only on Fedora where this functionality works.

@jkonecny12
Copy link
Member Author

/test-tmt

@jkonecny12
Copy link
Member Author

/test-os-variants

@jkonecny12 jkonecny12 requested a review from rvykydal July 25, 2024 13:29
The rpm-ostree-container installations will by default install an UEFI
entry which did not happened before. However, if leavebootorder is set
it shouldn't happen.

On RHEL-9 and RHEL-10 the leavebootorder will be ignored because it's
not yet implemented, however, the final behavior is the same so let's
leave it enabled also on these platforms.
This test works similar to `rpm-ostree-container-bootc` test but it will
also check for UEFI entry and boot the system in UEFI mode.
It might be merged together with bootc test but RHEL-9 and RHEL-10 are
failing there currently.
@jkonecny12 jkonecny12 force-pushed the add-bootc-leavebootorder-test branch from a773def to e7591e0 Compare July 25, 2024 13:56
@jkonecny12
Copy link
Member Author

/test-tmt

@rvykydal
Copy link
Contributor

rvykydal commented Aug 6, 2024

/test-os-variants

Copy link
Contributor

@rvykydal rvykydal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@jkonecny12 jkonecny12 merged commit 3ff80a3 into rhinstaller:master Aug 7, 2024
6 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.

2 participants