On Mon, Dec 18, 2023 at 12:22 PM Narcis Garcia <narcisgar...@gilug.org> wrote: > > El 17/12/23 a les 16:56, Andrei Borzenkov ha escrit: > > On 17.12.2023 18:00, Narcis Garcia wrote: > >> > >> What about selecting between vmlinuz-...-amd64 and vmlinuz-...-i386 on > >> non EFI firmware? > >> > >> > > > > If you describe what condition you are going to use to decide which > > kernel to load someone may have an idea how to implement it in grub. > > grub itself just loads file you told it to load. > > > > Expecting non EFI firmware (BIOS only): >
There is only one non-EFI x86 grub platform - i386-pc. > if [ $grub_cpu = x86_64 ]; then > # instructions to boot with amd64 kernel > elif [ $grub_cpu = i386 ]; then > # instructions to boot with i386 kernel > fi > > How to get $grub_cpu filled? > It is automatically set by grub.