From 29e2fcc16794d511b041097e654fc1cf2dffc13a Mon Sep 17 00:00:00 2001 From: Luiz Angelo Daros de Luca Date: Sat, 16 Jan 2021 02:38:03 -0300 Subject: [PATCH] x86: support booting from grub2-xen (pvgrub2) grub2 can be compiled as a paravirtualized kernel for booting systems using the distribution standard configuration. It has a builtin script that looks for the system grub.cfg. At least for SLES binary, it looks for /boot/grub2/grub.cfg or /boot/grub/menu.lst, but not /boot/grub/grub.cfg used by OpenWrt. This patch creates a symlink /boot/grub2 -> grub. Signed-off-by: Luiz Angelo Daros de Luca --- target/linux/x86/image/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/target/linux/x86/image/Makefile b/target/linux/x86/image/Makefile index 85c850c1281..8f3a00393f9 100644 --- a/target/linux/x86/image/Makefile +++ b/target/linux/x86/image/Makefile @@ -44,6 +44,7 @@ define Build/combined $(CP) $(KDIR)/$(KERNEL_NAME) $@.boot/boot/vmlinuz -$(CP) $(STAGING_DIR_ROOT)/boot/. $@.boot/boot/ $(CP) $(STAGING_DIR_IMAGE)/grub2/boot.img $@.boot/boot/grub/ + $(LN) grub $@.boot/boot/grub2 $(CP) $(STAGING_DIR_IMAGE)/grub2/$(if $(filter $(1),efi),gpt,$(GRUB2_VARIANT))-core.img \ $@.boot/boot/grub/core.img $(if $(filter $(1),efi),