# Distributed under the GPL v2
# $Id$
+ 08 Apr 2012; Sebastian Pipping <sping@gentoo.org> gen_initramfs.sh,
+ genkernel.conf:
+ Add "fastest" to supported initrd compressions
+
08 Apr 2012; Sebastian Pipping <sping@gentoo.org> gen_initramfs.sh:
Support comression "lzop" (not just "lzo") as wrongly advertised by comments
in genkernel.conf before
case ${COMPRESS_INITRD_TYPE} in
xz|lzma|bzip2|gzip|lzop) compression=${COMPRESS_INITRD_TYPE} ;;
lzo) compression=lzop ;;
- best)
+ best|fastest)
for tuple in \
'CONFIG_RD_XZ cmd_xz xz' \
'CONFIG_RD_LZMA cmd_lzma lzma' \
cmd_variable_name=$2
if grep -sq "^${kernel_option}=y" ${KERNEL_DIR}/.config && test -n "${!cmd_variable_name}" ; then
compression=$3
- break
+ [[ ${COMPRESS_INITRD_TYPE} == best ]] && break
fi
done
;;
# Compress generated initramfs
#COMPRESS_INITRD="yes"
-# Types of compression: best, xz, lzma, bzip2, gzip, lzop
+# Types of compression: best, xz, lzma, bzip2, gzip, lzop, fastest
# "best" selects the best available compression method
+# "fastest" selects the fastest available compression method
#COMPRESS_INITRD_TYPE="best"