Logo
Explore Help
Register Sign In
298977887/lede
1
0
Fork 0
You've already forked lede
mirror of https://github.com/coolsnowwolf/lede.git synced 2025-07-30 02:16:59 +08:00
Code Issues Packages Projects Releases Wiki Activity
lede/target/linux/x86/image/grub-efi.cfg

14 lines
284 B
INI
Raw Normal View History

x64: fix grub2 booting
2021-06-15 17:58:07 +08:00
@SERIAL_CONFIG@
@TERMINAL_CONFIG@
set default="0"
set timeout="@TIMEOUT@"
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-11 01:46:55 +08:00
search -l kernel -s root
x64: fix grub2 booting
2021-06-15 17:58:07 +08:00
menuentry "@TITLE@" {
linux /boot/vmlinuz @GPT_ROOTPART@ @CMDLINE@ noinitrd
}
menuentry "@TITLE@ (failsafe)" {
linux /boot/vmlinuz failsafe=true @GPT_ROOTPART@ @CMDLINE@ noinitrd
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 70ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API