From d515ae56842f9420ff4c629eac18904f7beef2e8 Mon Sep 17 00:00:00 2001 From: Adrian Gibanel Lopez Date: Fri, 21 Aug 2015 23:54:46 +0200 Subject: Multi bootloader support Note: OLDIFS use makes IFS to be reset to "" instead to it being unset. Either we need to detect if old IFS was unset to unset it or we need a proper way of setting it as a local variable. Even more IFS it's not currently used in Check_package (which it's called from: binary_hdd). we should have a clean way of resetting/unsetting IFS when calling Check_package. The other approach it's to explicitly define IFS with its default value in the places inside live-build code where we implicitly suppose that it's going to have its default value. --- scripts/build/source_debian | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'scripts/build/source_debian') diff --git a/scripts/build/source_debian b/scripts/build/source_debian index 9b3b63483..321ed1b4a 100755 --- a/scripts/build/source_debian +++ b/scripts/build/source_debian @@ -52,8 +52,15 @@ fi # Download sources Chroot chroot "dpkg --get-selections" | awk '{ print $1 }' > source-selection.txt +echo "${LB_BOOTLOADERS}" | \ +while IFS="," read -r BOOTLOADER +do + cat >> source-selection.txt << EOF + ${BOOTLOADER} +EOF +done + cat >> source-selection.txt << EOF -${LB_BOOTLOADER} live-build EOF -- cgit v1.2.3