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. --- debian/changelog | 7 + scripts/build/binary_loopback_cfg | 254 +++++++++++++++++-------------------- share/bootloaders/grub-pc/grub.cfg | 18 +++ 3 files changed, 140 insertions(+), 139 deletions(-) diff --git a/debian/changelog b/debian/changelog index a7ed5906e..77fb01684 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +live-build (1:20161213) UNRELEASED; urgency=medium + + * Cleanup binary_loopback_cfg and offer more freedom in overriding + the default grub-pc configuration. + + -- Raphaël Hertzog Tue, 13 Dec 2016 18:31:44 +0100 + live-build (1:20161202) unstable; urgency=medium [ Raphaël Hertzog ] 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 diff --git a/share/bootloaders/grub-pc/grub.cfg b/share/bootloaders/grub-pc/grub.cfg index 1a3456b41..a80937507 100644 --- a/share/bootloaders/grub-pc/grub.cfg +++ b/share/bootloaders/grub-pc/grub.cfg @@ -27,14 +27,32 @@ terminal_output gfxterm insmod play play 960 440 1 0 4 440 1 +# Live boot LINUX_LIVE +# You can add more entries like this +# menuentry "Alternate live boot" { +# linux KERNEL_LIVE APPEND_LIVE custom options here +# initrd INITRD_LIVE +# } +# menuentry "Alternate graphical installer" { +# linux KERNEL_GI APPEND_GI custom options here +# initrd INITRD_GI +# } +# menuentry "Alternate textual installer" { +# linux KERNEL_DI APPEND_DI custom options here +# initrd INITRD_DI +# } + +# Installer (if any) LINUX_INSTALL submenu 'Advanced options...' { +# More installer entries (if any) LINUX_ADVANCED_INSTALL +# Memtest (if any) MEMTEST } -- cgit v1.2.3