From cfca839587edf11c76f9c1f7781dfba3d0c96d56 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Sun, 8 Apr 2012 19:42:15 +0200 Subject: [PATCH] Error out on unknown initrd compression, reported by Peter Gantner (bug #411197) --- ChangeLog | 4 ++++ gen_initramfs.sh | 3 +++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8c35954..c728da5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ # Distributed under the GPL v2 # $Id$ + 08 Apr 2012; Sebastian Pipping gen_initramfs.sh: + Error out on unknown initrd compression, reported by Peter Gantner (bug + #411197) + 08 Apr 2012; Sebastian Pipping gen_initramfs.sh: Fix initrd compression "gzip", reported by Peter Gantner (bug #411197) diff --git a/gen_initramfs.sh b/gen_initramfs.sh index 09592bc..be0da85 100755 --- a/gen_initramfs.sh +++ b/gen_initramfs.sh @@ -720,6 +720,9 @@ create_initramfs() { elif grep -sq '^CONFIG_RD_LZO=y' ${KERNEL_DIR}/.config && test -n "${cmd_lzop}" ; then compression=lzo fi ;; + *) + gen_die "Compression '${COMPRESS_INITRD_TYPE}' unknown" + ;; esac case $compression in xz) compress_ext='.xz' compress_cmd="${cmd_xz} -e --check=none -z -f -9" ;; -- 2.26.2