Fix uki mode detection (#198)

This commit is contained in:
Itxaka
2024-01-10 10:38:31 +01:00
committed by GitHub
parent 174d69c3ea
commit 53f49169b1
3 changed files with 21 additions and 5 deletions

View File

@@ -520,7 +520,7 @@ const (
func UkiBootMode() state.Boot {
if IsUki() {
_, err := os.Stat("/run/cos/uki_boot_mode")
if err != nil {
if err == nil {
return UkiHDD
}
return UkiRemovableMedia