From 6d7aef9f4949af1cf285aa39b5bf22f90faa9b9d Mon Sep 17 00:00:00 2001 From: Ivan Davidov Date: Mon, 4 Dec 2017 16:32:08 +0200 Subject: [PATCH] Use local source (kexec-tools). --- src/.config | 6 ------ src/minimal_overlay/bundles/kexec_tools/.config | 5 +++++ src/minimal_overlay/bundles/kexec_tools/01_get.sh | 8 +++----- 3 files changed, 8 insertions(+), 11 deletions(-) create mode 100644 src/minimal_overlay/bundles/kexec_tools/.config diff --git a/src/.config b/src/.config index 5519eec09..b41e50135 100644 --- a/src/.config +++ b/src/.config @@ -41,12 +41,6 @@ SYSLINUX_SOURCE_URL=http://kernel.org/pub/linux/utils/boot/syslinux/syslinux-6.0 # # ##################################################################### -# You can find the latest kexec-tools source bundles here: -# -# https://www.kernel.org/pub/linux/utils/kernel/kexec/ -# -KEXEC_TOOLS_SOURCE_URL=http://kernel.org/pub/linux/utils/kernel/kexec/kexec-tools-2.0.15.tar.xz - # You can find the latest libevent archives here: # # https://github.com/libevent/libevent/releases/ diff --git a/src/minimal_overlay/bundles/kexec_tools/.config b/src/minimal_overlay/bundles/kexec_tools/.config new file mode 100644 index 000000000..1250d8219 --- /dev/null +++ b/src/minimal_overlay/bundles/kexec_tools/.config @@ -0,0 +1,5 @@ +# You can find the latest kexec-tools source bundles here: +# +# https://www.kernel.org/pub/linux/utils/kernel/kexec/ +# +KEXEC_TOOLS_SOURCE_URL=http://kernel.org/pub/linux/utils/kernel/kexec/kexec-tools-2.0.15.tar.xz diff --git a/src/minimal_overlay/bundles/kexec_tools/01_get.sh b/src/minimal_overlay/bundles/kexec_tools/01_get.sh index a526e28b6..353e7c5e3 100755 --- a/src/minimal_overlay/bundles/kexec_tools/01_get.sh +++ b/src/minimal_overlay/bundles/kexec_tools/01_get.sh @@ -4,14 +4,12 @@ set -e . ../../common.sh -# Grab everything after the '=' character. -DOWNLOAD_URL=$(grep -i KEXEC_TOOLS_SOURCE_URL $MAIN_SRC_DIR/.config | cut -f2 -d'=') +# Read the common configuration properties. +DOWNLOAD_URL=`read_property KEXEC_TOOLS_SOURCE_URL` +USE_LOCAL_SOURCE=`read_property USE_LOCAL_SOURCE` # Grab everything after the last '/' character. ARCHIVE_FILE=${DOWNLOAD_URL##*/} -echo "ARCHIVE_FILE='${ARCHIVE_FILE}'" -# Read the 'USE_LOCAL_SOURCE' property from '.config' -USE_LOCAL_SOURCE="$(grep -i USE_LOCAL_SOURCE $MAIN_SRC_DIR/.config | cut -f2 -d'=')" if [ "$USE_LOCAL_SOURCE" = "true" -a ! -f $MAIN_SRC_DIR/source/overlay/$ARCHIVE_FILE ] ; then echo "Source bundle $MAIN_SRC_DIR/source/overlay/$ARCHIVE_FILE is missing and will be downloaded."