From 5adf8f682756357f82f26b7400b1c140f1924bcf Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Mon, 13 Oct 2014 20:46:23 +0200 Subject: [PATCH 1/1] Fix linux-image package check for Debian/jessie 32bit The linux-image-686 package no longer exists in jessie, instead we have to use linux-image-686-pae nowadays. Thanks: Patrick Schleizer for the bug report Fixes #32 @ github --- chroot-script | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/chroot-script b/chroot-script index eeb62cf..1a74aef 100755 --- a/chroot-script +++ b/chroot-script @@ -304,9 +304,19 @@ get_kernel_version() { return 0 fi - case $ARCH in - i386) KARCH=686 ;; - amd64) KARCH=amd64 ;; + local KARCH + + case "$ARCH" in + i386) + case "$RELEASE" in + lenny|squeeze|wheezy) KARCH='686' ;; + # since jessie the linux-image-686 image doesn't exist any longer + *) KARCH='686-pae' ;; + esac + ;; + amd64) + KARCH='amd64' + ;; *) echo "Only i386 and amd64 are currently supported" >&2 return 1 -- 2.1.4