From 6e606998a88b79a0c58187481fd43610e19bc031 Mon Sep 17 00:00:00 2001 From: Itxaka Date: Tue, 1 Oct 2024 11:48:29 +0200 Subject: [PATCH] Add missing comment about fallback Signed-off-by: Itxaka --- pkg/utils/grub.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/utils/grub.go b/pkg/utils/grub.go index 165fe006..3e5fa8c4 100644 --- a/pkg/utils/grub.go +++ b/pkg/utils/grub.go @@ -195,6 +195,7 @@ func (g Grub) Install(target, rootDir, bootDir, grubConf, tty string, efi bool, var model string model, err = utils.OSRelease("KAIROS_MODEL", filepath.Join(cnst.ActiveDir, "etc/kairos-release")) if err != nil { + // Fallback into os-release model, err = utils.OSRelease("KAIROS_MODEL", filepath.Join(cnst.ActiveDir, "etc/os-release")) if err != nil { g.config.Logger.Warnf("Failed reading model info from %s and %s: %v", filepath.Join(cnst.ActiveDir, "etc/kairos-release"), filepath.Join(cnst.ActiveDir, "os/kairos-release"), err)