immortalwrt/target
Jax Jiang 17c597df60
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>
(cherry picked from commit 1050e66c8f)
2022-04-12 03:03:57 +08:00
..
imagebuilder imagebuilder: fix broken image generation with external targets 2022-03-26 22:47:10 +08:00
linux x86: grub2: search for the "kernel" filesystem on all disks 2022-04-12 03:03:57 +08:00
sdk build: scripts/config - update to kconfig-v5.14 2022-02-24 11:35:03 +08:00
toolchain config: pack toolchain per default on buildbots 2021-11-27 03:52:11 +08:00
Config.in build: define PWM_SUPPORT arch feature flag 2020-09-26 11:34:00 +08:00
Makefile update target 2019-08-19 22:26:19 +08:00