You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linux localhost 6.2.0-33-generic #33~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 10:33:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Describe the bug
We are adding saved_entry grub_options as part of the elemental install config through kairos pkg github.com/kairos-io/kairos/pkg/config. These options get passed to the install config through a handler which gets executed by agent.install plugin event.
Here, setting the saved_entry flag to the registration grub. However, after upgrading to 2.4.0, we found /oem/grubenv missing and after installation next boot is not going to this grub instead it is going to the first entry in the grub menu.
Output of grubmenu.cfg
root@localhost:/var/log# cat /etc/kairos/branding/grubmenu.cfg
menuentry "Palette eXtended Kubernetes Edge Reset" --id statereset {
set img=/cOS/recovery.img
search.fs_label COS_RECOVERY root
set label=COS_SYSTEM
loopback loop0 /$img
set root=($root)
source (loop0)/etc/cos/bootargs.cfg
linux (loop0)$kernel $kernelcmd ${extra_cmdline} ${extra_recovery_cmdline} kairos.reset
initrd (loop0)$initramfs
}
menuentry "Palette eXtended Kubernetes Edge Registration" --id registration {
search --no-floppy --label --set=root COS_STATE
set img=/cOS/active.img
set label=COS_ACTIVE
loopback loop0 /$img
set root=($root)
source (loop0)/etc/cos/bootargs.cfg
linux (loop0)$kernel $kernelcmd ${extra_cmdline} ${extra_active_cmdline} stylus.registration
initrd (loop0)$initramfs
}
Expected behavior
Expected to boot into proper grub menu entry. Here, in this case, it should boot into menuentry "Palette eXtended Kubernetes Edge Registration" --id registration. It was working fine till v2.3.2.
Dr-N00B
changed the title
saved_entry grub options not getting applied on boot after upgrading kairos from 2.3.2 to 2.4.0
saved_entry grub options not getting applied on boot in kairos 2.4.0
Sep 25, 2023
Kairos version:
CPU architecture, OS, and Version:
Describe the bug
We are adding saved_entry grub_options as part of the elemental install config through kairos pkg
github.com/kairos-io/kairos/pkg/config
. These options get passed to the install config through a handler which gets executed by agent.install plugin event./oem/90_custom.yaml using 2.3.2
With v2.4.0, the after-upgrade stage seems to be missing altogether.
Here, setting the saved_entry flag to the registration grub. However, after upgrading to 2.4.0, we found
/oem/grubenv missing and after installation next boot is not going to this grub instead it is going to the first entry in the grub menu.
Output of grubmenu.cfg
Expected behavior
Expected to boot into proper grub menu entry. Here, in this case, it should boot into menuentry "Palette eXtended Kubernetes Edge Registration" --id registration. It was working fine till v2.3.2.
This issue is similar to the one #1460
The text was updated successfully, but these errors were encountered: