On 04.02.25 21:17, Stephen Ecker wrote:
> I tried to install a new kernel through apt-get on the running machine
> and, while the kernel installed fine, grub did not update.
>
> it appears that grub is not even actually installed on the target
> system, so I'm guessing grub is installed and configured in one of the
> recipes.
Yes, namely by the wic imager and this plugin:
https://github.com/ilbers/isar/blob/master/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py
This creates a very primitive grub.conf that does not support on-device
kernel updates.
>
> furthermore, I'm using btrfs subvolumes, and apparently grub does _not_
> want to work with this configuration.
>
> Unless any of that seems like an easy fix from my end, can someone tell
> me where and how I might add menu items to grub.cfg on the boot
> partition during build?
You could feed in your own config ("bootloader --configfile ...") if you
really want to use grub. Most of our deployments do not want to, thus
grub is clearly the stepchild in isar (and probably also in OE).
Jan
--
Siemens AG, Foundational Technologies
Linux Expert Center