From: Michael Prokop Date: Mon, 13 Oct 2014 18:46:23 +0000 (+0200) Subject: Fix linux-image package check for Debian/jessie 32bit X-Git-Tag: v0.67~2 X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=commitdiff_plain;h=5adf8f682756357f82f26b7400b1c140f1924bcf;hp=e0b0b8bc2d0f5260639f598bf79677248de2339c 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 --- 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