From 077d005a84f9c7b554889afcc196023bf829e86e Mon Sep 17 00:00:00 2001 From: Lyndon Brown Date: Wed, 25 Mar 2020 02:59:44 +0000 Subject: [PATCH] grub2|loopback: extract memtest menu entry creation to config file backwards compatibility: 1. the new file will be included alongside any user custom config 2. rather than replace MEMTEST with an actual config entry, we replace it with a line to import the content of the new file, and thus will work just as before. thus no backwards compatible breakage Gbp-Dch: Short --- scripts/build/binary_loopback_cfg | 25 +++++++++++-------------- share/bootloaders/grub-pc/grub.cfg | 6 ++++-- share/bootloaders/grub-pc/memtest.cfg | 3 +++ 3 files changed, 18 insertions(+), 16 deletions(-) create mode 100644 share/bootloaders/grub-pc/memtest.cfg diff --git a/scripts/build/binary_loopback_cfg b/scripts/build/binary_loopback_cfg index acf654885..7fe9a6dad 100755 --- a/scripts/build/binary_loopback_cfg +++ b/scripts/build/binary_loopback_cfg @@ -92,15 +92,6 @@ Grub_live_autodetect_entry () LINUX_LIVE="${LINUX_LIVE}$(Grub_live_autodetect_menu_entry "$@")$NL" } -Grub_memtest_menu_entry () -{ - cat <