mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-09-25 13:33:41 +00:00
Fix mountpoint in grub hook (#803)
This commit is contained in:
@@ -65,9 +65,9 @@ func grubOptions(c config.Config, opts map[string]string) error {
|
|||||||
} else {
|
} else {
|
||||||
c.Logger.Logger.Debug().Msg("OEM partition already mounted")
|
c.Logger.Logger.Debug().Msg("OEM partition already mounted")
|
||||||
}
|
}
|
||||||
err = utils.SetPersistentVariables(filepath.Join(runtime.OEM.MountPoint, "grubenv"), opts, &c)
|
err = utils.SetPersistentVariables(filepath.Join(cnst.OEMPath, "grubenv"), opts, &c)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
c.Logger.Logger.Error().Err(err).Msg("Failed to set grub options")
|
c.Logger.Logger.Error().Err(err).Str("grubfile", filepath.Join(cnst.OEMPath, "grubenv")).Msg("Failed to set grub options")
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user