Error out on unknown initrd compression, reported by Peter Gantner (bug #411197)

cleanup-cruft
Sebastian Pipping 13 years ago
parent c0ed5530a5
commit cfca839587

@ -5,6 +5,10 @@
# Distributed under the GPL v2
# $Id$
08 Apr 2012; Sebastian Pipping <sping@gentoo.org> gen_initramfs.sh:
Error out on unknown initrd compression, reported by Peter Gantner (bug
#411197)
08 Apr 2012; Sebastian Pipping <sping@gentoo.org> gen_initramfs.sh:
Fix initrd compression "gzip", reported by Peter Gantner (bug #411197)

@ -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" ;;

Loading…
Cancel
Save