-
Notifications
You must be signed in to change notification settings - Fork 42
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
EFI & Secure Boot #141
EFI & Secure Boot #141
Conversation
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.
Please don't change formatting in the same commit. Also, what's different than #134? Can't that be used/merged?
Yeah that's my editor settings, need to disable it.
I can't edit current PRs/branches of others, so I thought I would create a new one since we agreed that I would continue with the work. |
4d1994a
to
c655a96
Compare
Tests are failing on master as well, don't know the details yet. |
I said that I thought the fog-libvirt patch was OK, but should only be merged once we have the Foreman code in a mergeable state so we know it's a good API. Taking a commit from someone else without attributing the original author is a poor practice that leans towards plagiarism. Even if it's open source, crediting the original author is important. And if there is prior work, explaining why your version is different.
|
c655a96
to
39441e7
Compare
Yeah I didn't want to steal your work, I can credit you for sure, just wanted to make it fast as possible. |
@ekohl I assigned you in the https://github.com/theforeman/foreman/pull/10209/files wym to take care of the review ? |
39441e7
to
64e9e9d
Compare
Rebased, added @ekohl as author & tested with Fedora 39 UEFI + SecureBoot. Ready for review |
We should implement it according to https://libvirt.org/kbase/secureboot.html: Enable SB:
Disable SB:
Providing |
Co-authored-by: Ewoud Kohl van Wijngaarden <[email protected]>
64e9e9d
to
a4fb77c
Compare
Looking forward to this getting merged. |
secure_boot = !xml.include?('<feature name="secure-boot" enabled="no" />') | ||
enrolled_keys = !xml.include?('<feature name="enrolled-keys" enabled="no" />') |
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.
I think this isn't a good test because there's a very high chance the feature is just slightly different. In particular, when I run this test manually I see it includes:
<firmware>
<feature name="secure-boot" enabled="no"/>
<feature name="enrolled-keys" enabled="no"/>
</firmware>
Note the space before />
is missing.
Did you intend:
secure_boot = !xml.include?('<feature name="secure-boot" enabled="no" />') | |
enrolled_keys = !xml.include?('<feature name="enrolled-keys" enabled="no" />') | |
secure_boot = xml.include?('<feature name="secure-boot" enabled="no"/>') | |
enrolled_keys = xml.include?('<feature name="enrolled-keys" enabled="no"/>') |
type = xml.type(os_type, :arch => arch) | ||
type[:machine] = "q35" if ["i686", "x86_64"].include?(arch) | ||
|
||
boot_order.each do |dev| | ||
xml.boot(:dev => dev) | ||
end | ||
|
||
if os_firmware == "efi" |
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.
Should this be:
if os_firmware == "efi" | |
if os_firmware == "efi" && os_firmware_features.any? |
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.
Also, please make sure we deal with nil
if os_firmware == "efi" | |
if os_firmware == "efi" && os_firmware_features&.any? |
I don't have permission to push changes to this PR, so I created a new one: #155. |
No description provided.