immortalwrt/target/linux/x86
Jax Jiang 02d896101d
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-29 10:15:04 +08:00
..
64 Revert "treewide: add missing kconfig symbols" 2021-10-17 23:56:01 +08:00
base-files [HOT FIX] Merge Mainline 2022-04-03 00:50:22 +08:00
generic kernel: move two symbols to the generic kconfigs 2021-08-30 12:13:54 +08:00
geode treewide: add various missing config symbols 2021-08-11 12:03:11 +08:00
image x86: grub2: search for the "kernel" filesystem on all disks 2022-04-29 10:15:04 +08:00
legacy treewide: add missing kernel config for 5.10 2021-12-18 00:25:49 +08:00
patches-5.4 kernel: bump 5.4 to 5.4.142 2021-08-22 12:12:55 +08:00
patches-5.10 x86: remove old lzma tuning patch 2021-12-12 23:56:28 +08:00
config-5.4 treewide: add various missing config symbols 2021-08-11 12:03:11 +08:00
config-5.10 treewide: add various missing config symbols 2021-08-11 12:03:11 +08:00
Makefile x86/zen: drop broken target 2022-04-14 10:36:35 +08:00
modules.mk x86: amd-xgbe: add missing dependencies on 5.10 2021-04-18 23:46:19 +08:00