From: Sebastian Pipping Date: Sun, 8 Jul 2012 21:42:32 +0000 (+0200) Subject: Catch case with no initramfs compression supported by kernel (bug #423847) X-Git-Tag: v3.4.37~1^2~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=15a33f3d28d9efa512b736853046224d7d2701d3;p=genkernel.git Catch case with no initramfs compression supported by kernel (bug #423847) --- diff --git a/ChangeLog b/ChangeLog index 3950fa6..2469de6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ # Distributed under the GPL v2 # $Id$ + 08 Jul 2012; Sebastian Pipping gen_configkernel.sh, + gen_initramfs.sh: + Catch case with no initramfs compression supported by kernel (bug #423847) + 08 Jul 2012; Sebastian Pipping gen_configkernel.sh, gen_initramfs.sh: Fix detection of initramfs compression with bzip2 as best candidate diff --git a/gen_initramfs.sh b/gen_initramfs.sh index 6769063..43ef155 100755 --- a/gen_initramfs.sh +++ b/gen_initramfs.sh @@ -790,6 +790,7 @@ create_initramfs() { [[ ${COMPRESS_INITRD_TYPE} == best ]] && break fi done + [[ -z "${compression}" ]] && gen_die "None of the initramfs we tried are supported by your kernel (config file \"${KERNEL_CONFIG}\"), strange!?" ;; *) gen_die "Compression '${COMPRESS_INITRD_TYPE}' unknown"