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

Try to get the flavor on EFI installs #568

Merged
merged 1 commit into from
Oct 1, 2024
Merged

Try to get the flavor on EFI installs #568

merged 1 commit into from
Oct 1, 2024

Conversation

Itxaka
Copy link
Member

@Itxaka Itxaka commented Oct 1, 2024

If somehow our KAIROS_X keys are gone from the system due to something removing them like an upgrade, we wont be able to identify the flavors and we need it if its an ubuntu machine as we do a workaround for EFI installs, otherwise you get a broken grub.

This tries to infer the flavor form the os-release ID field which will exist and check if its ubuntu.

Fixes: kairos-io/kairos#2895

@Itxaka Itxaka requested a review from a team October 1, 2024 10:05
If somehow our KAIROS_X keys are gone from the system due to something
removing them like an upgrade, we wont be able to identify the flavors
and we need it if its an ubuntu machine as we do a workaround for EFI
installs, otherwise you get a broken grub.

This tries to infer the flavor form the os-release ID field which will
exist and check if its ubuntu.

Signed-off-by: Itxaka <itxaka@kairos.io>
Copy link

codecov bot commented Oct 1, 2024

Codecov Report

Attention: Patch coverage is 66.66667% with 2 lines in your changes missing coverage. Please review.

Project coverage is 49.82%. Comparing base (0f85a2c) to head (6ecb16b).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
pkg/utils/grub.go 66.66% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #568      +/-   ##
==========================================
+ Coverage   49.80%   49.82%   +0.02%     
==========================================
  Files          48       48              
  Lines        4582     4588       +6     
==========================================
+ Hits         2282     2286       +4     
- Misses       2026     2027       +1     
- Partials      274      275       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Itxaka Itxaka merged commit a3452b4 into main Oct 1, 2024
14 checks passed
@Itxaka Itxaka deleted the 2895 branch October 1, 2024 14:15
@mudler mudler mentioned this pull request Oct 1, 2024
42 tasks
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.

Identify system by other keys when installing grub
2 participants