Jax Jiang 1050e66c8f x86: grub2: search for the "kernel" filesystem on all disks
Previously, grub2 was hardcoded to always look on "hd0" for the
kernel.

This works well when the system only had a single disk.
But if there was a second disk/stick present, it may have look
on the wrong drive because of enumeration races.

This patch utilizes grub2 search function to look for a filesystem
with the label "kernel". This works thanks to existing setup in
scripts/gen_image_generic.sh. Which sets the "kernel" label on
both the fat and ext4 filesystem variants.

Signed-off-by: Jax Jiang <jax.jiang.007@gmail.com>
Suggested-by: Alberto Bursi <bobafetthotmail@gmail.com> (MX100 WA)
(word wrapped, slightly rewritten commit message, removed MX100 WA)
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2022-02-24 20:45:12 +01:00
..
2022-02-17 11:08:58 +01:00
2021-11-08 15:56:39 +01:00
2022-01-16 20:51:14 +01:00
2022-02-01 23:34:07 +00:00
2022-01-13 09:33:29 +01:00
2022-02-20 14:24:43 +01:00
2022-02-01 23:34:07 +00:00
2022-01-28 22:06:03 +01:00
2022-02-24 15:32:57 +01:00
2022-02-11 14:24:01 +01:00
2022-02-05 14:39:20 +01:00
2021-12-17 15:10:22 +01:00
2022-02-01 23:34:07 +00:00
2022-02-18 01:31:15 +01:00