mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-09-25 05:09:47 +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 {
|
||||
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 {
|
||||
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
|
||||
}
|
||||
|
Reference in New Issue
Block a user