mirror of
https://github.com/kairos-io/kairos-sdk.git
synced 2025-09-14 14:21:31 +00:00
arrow_up: Bump repository and drop some workarounds (#434)
* ⬆️ Bump Kairos repositories Signed-off-by: Ettore Di Giacinto <mudler@mocaccino.org> * 🐧 Find out which grub to call Signed-off-by: Ettore Di Giacinto <mudler@mocaccino.org> Signed-off-by: Ettore Di Giacinto <mudler@mocaccino.org>
This commit is contained in:
committed by
Itxaka
parent
d6fc1751b0
commit
a4ff805b0f
@@ -37,7 +37,7 @@ func setGRUBOptions(opts map[string]string) error {
|
|||||||
}()
|
}()
|
||||||
|
|
||||||
for k, v := range opts {
|
for k, v := range opts {
|
||||||
out, err := utils.SH(fmt.Sprintf(`grub2-editenv /tmp/oem/grubenv set "%s=%s"`, k, v))
|
out, err := utils.SH(fmt.Sprintf(`%s /tmp/oem/grubenv set "%s=%s"`, machine.FindCommand("grub2-editenv", []string{"grub2-editenv", "grub-editenv"}), k, v))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Printf("could not set boot option: %s\n", out+err.Error())
|
fmt.Printf("could not set boot option: %s\n", out+err.Error())
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user