From 15a33f3d28d9efa512b736853046224d7d2701d3 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Sun, 8 Jul 2012 23:42:32 +0200 Subject: [PATCH] Catch case with no initramfs compression supported by kernel (bug #423847) --- ChangeLog | 4 ++++ gen_initramfs.sh | 1 + 2 files changed, 5 insertions(+) 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" -- 2.26.2