-
Notifications
You must be signed in to change notification settings - Fork 36
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
Add test support of bootupd EUFI entry insertion #1260
Conversation
/test-tmt |
/test-os-variants |
There was a problem hiding this 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.
0dba74e
to
a773def
Compare
UPDATED:
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. |
/test-tmt |
/test-os-variants |
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.
a773def
to
e7591e0
Compare
/test-tmt |
/test-os-variants |
There was a problem hiding this 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.
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