From 50b6a2952394783c286cfa3ee0a1c09ced67e936 Mon Sep 17 00:00:00 2001 From: Raphaƫl Hertzog Date: Tue, 13 Dec 2016 18:37:41 +0100 Subject: Cleanup binary_loopback_cfg and offer more freedom in overriding the default grub-pc configuration. --- scripts/build/binary_loopback_cfg | 254 +++++++++++++++++--------------------- 1 file changed, 115 insertions(+), 139 deletions(-) (limited to 'scripts/build/binary_loopback_cfg') diff --git a/scripts/build/binary_loopback_cfg b/scripts/build/binary_loopback_cfg index d8fa44878..00f537c48 100755 --- a/scripts/build/binary_loopback_cfg +++ b/scripts/build/binary_loopback_cfg @@ -46,27 +46,28 @@ Create_lockfile .lock Check_architectures amd64 i386 Check_crossarchitectures -# Local functions -Grub_live_entry_commands () -{ - local KERNEL="${1}" - local INITRD="${2}" - local APPEND="${3}" +# Variable used to embed newlines +NL=" +" - LINUX_LIVE="${LINUX_LIVE}\nlinux\t\t/${KERNEL} ${INITFS:+boot=${INITFS} }config LB_BOOTAPPEND_LIVE ${APPEND}" - LINUX_LIVE="${LINUX_LIVE}\ninitrd\t\t/${INITRD}" +# Local functions +Grub_menu_entry() { + local LABEL="$1" + local KERNEL="$2" + local INITRD="$3" + local APPEND="$4" + + cat < binary/boot/grub/loopback.cfg -- cgit v1.2.3