Catch case with no initramfs compression supported by kernel (bug #423847)
authorSebastian Pipping <sebastian@pipping.org>
Sun, 8 Jul 2012 21:42:32 +0000 (23:42 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Sun, 8 Jul 2012 22:01:42 +0000 (00:01 +0200)
ChangeLog
gen_initramfs.sh

index 3950fa6e62635042bda43bd997df4a91c50440f2..2469de66916ddeed7fd674c203878c0ff338b07b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,10 @@
 # Distributed under the GPL v2
 # $Id$
 
+  08 Jul 2012; Sebastian Pipping <sping@gentoo.org> gen_configkernel.sh,
+  gen_initramfs.sh:
+  Catch case with no initramfs compression supported by kernel (bug #423847)
+
   08 Jul 2012; Sebastian Pipping <sping@gentoo.org> gen_configkernel.sh,
   gen_initramfs.sh:
   Fix detection of initramfs compression with bzip2 as best candidate
index 676906306fd0f2447298ad8e0ec60df13c357b9b..43ef1550526288ba0e741adeb050cc8a389c0c6c 100755 (executable)
@@ -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"