]> xenbits.xensource.com Git - people/liuw/osstest.git/commitdiff
mg-debian-installer-update: Honour OSSTEST_SPECIALKERNELDEB_<suite>_<arch>
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 14 Dec 2017 15:40:22 +0000 (15:40 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 14 Dec 2017 15:54:26 +0000 (15:54 +0000)
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-<suite>-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 <Ian.Jackson@eu.citrix.com>
mg-debian-installer-update

index 4f318c1b67c62492f51995039849f1d642d80784..f1e682f9fa44788d183e8d24f04825efe3d845d6 100755 (executable)
@@ -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