[openwrt/openwrt] target/x86: add grub2-bios-setup to DEFAULT_PACKAGES

LEDE Commits lede-commits at lists.infradead.org
Mon Sep 19 10:31:18 PDT 2022


aparcar pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/027845b4ce906a7819e12f6298b96dba0cb4a183

commit 027845b4ce906a7819e12f6298b96dba0cb4a183
Author: Florian Eckert <fe at dev.tdt.de>
AuthorDate: Wed Aug 11 11:58:45 2021 +0200

    target/x86: add grub2-bios-setup to DEFAULT_PACKAGES
    
    With the commit 5876d6a62fc0ae5799e7d9c896356f75c99a6f0a the command under
    `/usr/sbin/grub-bios-setup` has been moved to its own package named
    `grub-bios-setup`.
    
    The script `81_upgrade_bootloader` under `/lib/preinit` is used by all
    x86 targets to update the bootloader. The script is using the command
    `grub-bios-setup` for this.
    
    I get the following output at the first boot after the upgrade.
    `/etc/preinit: line 9: /usr/sbin/grub-bios-setup: not found`.
    
    To fix this, the DEFAULT_PACKAGES dependency is extended by the entry
    `grub2-bios-setup` so that the missing command is installed again.
    
    Signed-off-by: Florian Eckert <fe at dev.tdt.de>
---
 target/linux/x86/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/target/linux/x86/Makefile b/target/linux/x86/Makefile
index 880ac73df8..20539e5ed3 100644
--- a/target/linux/x86/Makefile
+++ b/target/linux/x86/Makefile
@@ -17,7 +17,10 @@ KERNELNAME:=bzImage
 
 include $(INCLUDE_DIR)/target.mk
 
-DEFAULT_PACKAGES += partx-utils mkf2fs e2fsprogs kmod-button-hotplug
+DEFAULT_PACKAGES += \
+	partx-utils mkf2fs \
+	e2fsprogs kmod-button-hotplug \
+	grub2-bios-setup
 
 $(eval $(call BuildTarget))
 




More information about the lede-commits mailing list