immortalwrt/target/linux/x86
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
..
64 x86: kernel: set NR_CPUS to 512 2021-07-19 12:09:46 +08:00
base-files treewide: don't hardcode "sysupgrade.tgz" file name 2022-04-02 00:29:37 +08:00
generic x86: generate EFI platform bootable images 2021-06-17 20:13:41 +08:00
geode x86: sync with upstream 2021-06-17 18:56:16 +08:00
image x86: grub2: search for the "kernel" filesystem on all disks 2022-04-12 03:03:57 +08:00
legacy x86: generate EFI platform bootable images 2021-06-17 20:13:41 +08:00
patches-4.9 kernel: bump to 4.9.294, 4.14.259, 4.19.222 2021-12-25 03:54:06 +08:00
patches-4.14 kernel: bump to 4.9.294, 4.14.259, 4.19.222 2021-12-25 03:54:06 +08:00
patches-4.19 kernel: bump to 4.9.294, 4.14.259, 4.19.222 2021-12-25 03:54:06 +08:00
zen x86: sync with upstream 2021-06-17 18:56:16 +08:00
config-4.9 x86: apply MMC config to kernel 4.9 2020-10-07 03:06:34 +08:00
config-4.14 x86: kernel: set NR_CPUS to 512 2021-07-19 12:09:46 +08:00
config-4.19 x86/4.19: fix build for crypto ccp module 2020-06-29 11:30:10 +08:00
Makefile x86: added support to generate VHDX images 2021-12-17 10:58:46 +08:00
modules.mk kernel: add pcengines-apu2 module description 2020-06-27 12:26:48 +08:00