Add "fastest" to supported initrd compressions

cleanup-cruft
Sebastian Pipping 13 years ago
parent 10a2bde198
commit 66e5a24704

@ -5,6 +5,10 @@
# Distributed under the GPL v2 # Distributed under the GPL v2
# $Id$ # $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: 08 Apr 2012; Sebastian Pipping <sping@gentoo.org> gen_initramfs.sh:
Support comression "lzop" (not just "lzo") as wrongly advertised by comments Support comression "lzop" (not just "lzo") as wrongly advertised by comments
in genkernel.conf before in genkernel.conf before

@ -714,7 +714,7 @@ create_initramfs() {
case ${COMPRESS_INITRD_TYPE} in case ${COMPRESS_INITRD_TYPE} in
xz|lzma|bzip2|gzip|lzop) compression=${COMPRESS_INITRD_TYPE} ;; xz|lzma|bzip2|gzip|lzop) compression=${COMPRESS_INITRD_TYPE} ;;
lzo) compression=lzop ;; lzo) compression=lzop ;;
best) best|fastest)
for tuple in \ for tuple in \
'CONFIG_RD_XZ cmd_xz xz' \ 'CONFIG_RD_XZ cmd_xz xz' \
'CONFIG_RD_LZMA cmd_lzma lzma' \ 'CONFIG_RD_LZMA cmd_lzma lzma' \
@ -726,7 +726,7 @@ create_initramfs() {
cmd_variable_name=$2 cmd_variable_name=$2
if grep -sq "^${kernel_option}=y" ${KERNEL_DIR}/.config && test -n "${!cmd_variable_name}" ; then if grep -sq "^${kernel_option}=y" ${KERNEL_DIR}/.config && test -n "${!cmd_variable_name}" ; then
compression=$3 compression=$3
break [[ ${COMPRESS_INITRD_TYPE} == best ]] && break
fi fi
done done
;; ;;

@ -314,8 +314,9 @@ GPG_BINCACHE="%%CACHE%%/gnupg-${GPG_VER}-%%ARCH%%.bz2"
# Compress generated initramfs # Compress generated initramfs
#COMPRESS_INITRD="yes" #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 # "best" selects the best available compression method
# "fastest" selects the fastest available compression method
#COMPRESS_INITRD_TYPE="best" #COMPRESS_INITRD_TYPE="best"

Loading…
Cancel
Save