immortalwrt/target/linux/x86
Jax Jiang 891f3af4fb
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-21 16:43:31 +08:00
..
64 Merge Official Source 2021-08-12 23:55:53 +08:00
base-files x86/base-files: add support for Sophos SG/XG-105 2021-04-10 15:05:05 +02:00
generic x86: move Kconfig symbol to common config 2021-07-30 20:12:58 +02:00
geode x86: move Kconfig symbol to common config 2021-07-30 20:12:58 +02:00
image x86: grub2: search for the "kernel" filesystem on all disks 2022-04-21 16:43:31 +08:00
legacy x86: legacy: enable pata_sis driver 2022-03-10 23:32:59 +01:00
patches-4.14 Merge Official Source 2020-03-12 17:50:48 +08:00
patches-4.19 Merge Official Source 2020-10-31 12:00:38 +08:00
patches-5.4 kernel: bump 5.4 to 5.4.179 2022-02-12 19:41:39 +01:00
config-5.4 x86: move Kconfig symbol to common config 2021-07-30 20:12:58 +02:00
Makefile x86: drop wpad from default packages 2021-09-13 11:14:11 +08:00
modules.mk target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00