From 65ba8171390cdd5e63f40ecec9df4458c7c37184 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 14 Dec 2017 15:40:22 +0000 Subject: [PATCH] mg-debian-installer-update: Honour OSSTEST_SPECIALKERNELDEB__ This variable can be set to the absolute pathname of a kernel .deb to use. It will be used only for hosts for which the corresponding hostflag "need-kernel-deb--special" is set. There is not currently any facility for more than one special kernel for each architecture. As with backports kernels, the normal (Debian-supplied) kernel is available too, and is used for hosts without any special hostflag. Signed-off-by: Ian Jackson --- mg-debian-installer-update | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/mg-debian-installer-update b/mg-debian-installer-update index 4f318c1..f1e682f 100755 --- a/mg-debian-installer-update +++ b/mg-debian-installer-update @@ -114,7 +114,14 @@ case ${suite}_${arch} in wheezy_armhf) bpok=armmp; need_initramfs=y;; jessie_arm64) bpok=arm64 ;; esac -if [ x$bpok != x ]; then +eval "specialdeb=\${OSSTEST_SPECIALKERNELDEB_${suite}_${arch}}" +if [ "x$specialdeb" != x ]; then + echo "using special kernel $specialdeb" + cp $specialdeb special.deb + specialkernel=special + bpok='' +fi +if [ x$bpok != x ] && [ "x$specialkernel" = x ]; then bp="$sbase-backports" pfile=$bp/main/binary-$arch/Packages.gz -- 2.39.5