From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SGwwD-0002N7-HK for garchives@archives.gentoo.org; Sun, 08 Apr 2012 18:34:09 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CD22AE0B39; Sun, 8 Apr 2012 18:33:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 98DCFE0B39 for ; Sun, 8 Apr 2012 18:33:37 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F40B91B40D1 for ; Sun, 8 Apr 2012 18:33:36 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id E94B4E5434 for ; Sun, 8 Apr 2012 18:33:34 +0000 (UTC) From: "Sebastian Pipping" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sebastian Pipping" Message-ID: <1333909637.66e5a247041af5406dfbc90acda436c3db0fa463.sping@gentoo> Subject: [gentoo-commits] proj/genkernel:master commit in: / X-VCS-Repository: proj/genkernel X-VCS-Files: ChangeLog gen_initramfs.sh genkernel.conf X-VCS-Directories: / X-VCS-Committer: sping X-VCS-Committer-Name: Sebastian Pipping X-VCS-Revision: 66e5a247041af5406dfbc90acda436c3db0fa463 X-VCS-Branch: master Date: Sun, 8 Apr 2012 18:33:34 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: c5e0d28d-9a11-4129-b678-86433b812bea X-Archives-Hash: bdf3c5f81d465eebcb6762cd7672d04b commit: 66e5a247041af5406dfbc90acda436c3db0fa463 Author: Sebastian Pipping pipping org> AuthorDate: Sun Apr 8 18:24:14 2012 +0000 Commit: Sebastian Pipping gentoo org> CommitDate: Sun Apr 8 18:27:17 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/genkernel.git= ;a=3Dcommit;h=3D66e5a247 Add "fastest" to supported initrd compressions --- ChangeLog | 4 ++++ gen_initramfs.sh | 4 ++-- genkernel.conf | 3 ++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2533e58..2db901a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ # Distributed under the GPL v2 # $Id$ =20 + 08 Apr 2012; Sebastian Pipping gen_initramfs.sh, + genkernel.conf: + Add "fastest" to supported initrd compressions + 08 Apr 2012; Sebastian Pipping gen_initramfs.sh: Support comression "lzop" (not just "lzo") as wrongly advertised by co= mments in genkernel.conf before diff --git a/gen_initramfs.sh b/gen_initramfs.sh index 082d525..4838234 100755 --- a/gen_initramfs.sh +++ b/gen_initramfs.sh @@ -714,7 +714,7 @@ create_initramfs() { case ${COMPRESS_INITRD_TYPE} in xz|lzma|bzip2|gzip|lzop) compression=3D${COMPRESS_INITRD_TYPE} ;; lzo) compression=3Dlzop ;; - best) + best|fastest) for tuple in \ 'CONFIG_RD_XZ cmd_xz xz' \ 'CONFIG_RD_LZMA cmd_lzma lzma' \ @@ -726,7 +726,7 @@ create_initramfs() { cmd_variable_name=3D$2 if grep -sq "^${kernel_option}=3Dy" ${KERNEL_DIR}/.config && test = -n "${!cmd_variable_name}" ; then compression=3D$3 - break + [[ ${COMPRESS_INITRD_TYPE} =3D=3D best ]] && break fi done ;; diff --git a/genkernel.conf b/genkernel.conf index 0d14271..c5e7aee 100644 --- a/genkernel.conf +++ b/genkernel.conf @@ -314,8 +314,9 @@ GPG_BINCACHE=3D"%%CACHE%%/gnupg-${GPG_VER}-%%ARCH%%.b= z2" =20 # Compress generated initramfs #COMPRESS_INITRD=3D"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=3D"best" =20 =20