-
Notifications
You must be signed in to change notification settings - Fork 7
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
Fix uki mode detection #198
Conversation
woops Signed-off-by: Itxaka <[email protected]>
so we dont fail to copy it properly. Its on the temp dir so it will be autoremoved by the system on reboot Signed-off-by: Itxaka <[email protected]>
Otherwise you end up with a broken half encrypted system with no OEM and cant troubleshoot it. Good for testing in devices that dont have TPM Signed-off-by: Itxaka <[email protected]>
if internalutils.UkiBootMode() == internalutils.UkiRemovableMedia { | ||
return runInstallUki(c) | ||
if internalutils.IsUki() { | ||
c.Logger.Debugf("UKI mode: %s\n", internalutils.UkiBootMode()) |
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.
bit more of logging to be able to check what mode are we in, in case we broke it like I already did :D
Signed-off-by: Itxaka <[email protected]>
@@ -520,7 +520,7 @@ const ( | |||
func UkiBootMode() state.Boot { | |||
if IsUki() { | |||
_, err := os.Stat("/run/cos/uki_boot_mode") | |||
if err != nil { |
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.
wops, I broke it on the first iteration by mixing the check :D
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #198 +/- ##
==========================================
- Coverage 58.22% 58.15% -0.08%
==========================================
Files 38 38
Lines 4778 4784 +6
==========================================
Hits 2782 2782
- Misses 1759 1765 +6
Partials 237 237 ☔ View full report in Codecov by Sentry. |
No description provided.