1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-10-19 05:58:53 +02:00
openwrt/target/linux/x86/image
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
..
64.mk x86: sort alphabetically default packages 2021-11-06 23:36:32 +01:00
generic.mk x86: use device vendor/model variable 2021-09-23 21:45:13 -10:00
geode.mk x86: geode: add kmod-crypto-ebc needed for hw acceleration 2022-02-19 13:10:01 +01:00
grub-efi.cfg x86: grub2: search for the "kernel" filesystem on all disks 2022-02-24 20:45:12 +01:00
grub-iso.cfg x86: generate EFI platform bootable images 2020-03-31 16:20:47 +02:00
grub-pc.cfg x86: switch image generation to new code 2020-03-21 10:36:00 +00:00
legacy.mk x86: use device vendor/model variable 2021-09-23 21:45:13 -10:00
Makefile x86: added support to generate VHDX images 2021-12-05 18:49:14 +01:00