From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D086F138334 for ; Tue, 16 Jul 2019 12:19:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5FD2EE083D; Tue, 16 Jul 2019 12:19:06 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 40105E0830 for ; Tue, 16 Jul 2019 12:19:06 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 42389347D69 for ; Tue, 16 Jul 2019 12:19:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D02466FE for ; Tue, 16 Jul 2019 12:19:03 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1563279360.c0bcc845e351dcd020fdc41f574476992e84e4dc.whissi@gentoo> Subject: [gentoo-commits] proj/genkernel:master commit in: / X-VCS-Repository: proj/genkernel X-VCS-Files: gen_initramfs.sh X-VCS-Directories: / X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: c0bcc845e351dcd020fdc41f574476992e84e4dc X-VCS-Branch: master Date: Tue, 16 Jul 2019 12:19:03 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2af099a3-de95-4256-b115-3e445d9880e1 X-Archives-Hash: 1b9503152c0c67091e0e18706d6735ef commit: c0bcc845e351dcd020fdc41f574476992e84e4dc Author: Thomas Deutschmann gentoo org> AuthorDate: Tue Jul 16 11:41:09 2019 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Tue Jul 16 12:16:00 2019 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=c0bcc845 gen_initramfs.sh: create_initramfs(): Make MCU CPIO creation silent but log content Signed-off-by: Thomas Deutschmann gentoo.org> gen_initramfs.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gen_initramfs.sh b/gen_initramfs.sh index f3b0ba0..6085ee8 100755 --- a/gen_initramfs.sh +++ b/gen_initramfs.sh @@ -1727,9 +1727,10 @@ create_initramfs() { if [ -f "${UCODEDIR}/AuthenticAMD.bin" -o -f "${UCODEDIR}/GenuineIntel.bin" ] then print_info 1 "$(get_indent 2)early-microcode: Creating cpio ..." - pushd "${TEMP}/ucode_tmp" > /dev/null - find . -print0 | cpio --null -o -H newc > ../ucode.cpio || gen_die "Failed to create cpu microcode cpio" - popd > /dev/null + pushd "${TEMP}/ucode_tmp" &>/dev/null || gen_die "Failed to chdir to '${TEMP}/ucode_tmp'!" + log_future_cpio_content + find . -print0 | cpio --quiet --null -o -H newc > ../ucode.cpio || gen_die "Failed to create cpu microcode cpio" + popd &>/dev/null || gen_die "Failed to chdir!" print_info 1 "$(get_indent 2)early-microcode: Prepending early-microcode to initramfs ..." cat "${TEMP}/ucode.cpio" "${CPIO}" > "${CPIO}.early-microcode" || gen_die "Failed to prepend early-microcode to initramfs" mv -f "${CPIO}.early-microcode" "${CPIO}" || gen_die "Rename failed"