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 C56EC138335 for ; Sun, 14 Jul 2019 13:00:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 754B4E086F; Sun, 14 Jul 2019 13:00:33 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 404BCE086B for ; Sun, 14 Jul 2019 13:00:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 B21ED347A9C for ; Sun, 14 Jul 2019 13:00:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 556CA6F0 for ; Sun, 14 Jul 2019 13:00:29 +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: <1563105495.cdad1c02a69452f6c3a52d5ce92e5009311e0c25.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: cdad1c02a69452f6c3a52d5ce92e5009311e0c25 X-VCS-Branch: master Date: Sun, 14 Jul 2019 13:00:29 +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: aad5bd88-bfb9-49cd-8fc7-78d59d7dc31e X-Archives-Hash: 39fc6c86ed6a8033d1cbb770175a927f commit: cdad1c02a69452f6c3a52d5ce92e5009311e0c25 Author: Thomas Deutschmann gentoo org> AuthorDate: Sun Jul 14 09:17:42 2019 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Sun Jul 14 11:58:15 2019 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=cdad1c02 gen_initramfs.sh: Refactor log_future_cpio_content() Always log to $LOGFILE. Signed-off-by: Thomas Deutschmann gentoo.org> gen_initramfs.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/gen_initramfs.sh b/gen_initramfs.sh index fb3b3ce..2a0d615 100755 --- a/gen_initramfs.sh +++ b/gen_initramfs.sh @@ -63,12 +63,10 @@ copy_binaries() { } log_future_cpio_content() { - if [[ "${LOGLEVEL}" -gt 1 ]]; then - echo ================================================================= - echo "About to add these files from '${PWD}' to cpio archive:" - find . | xargs ls -ald - echo ================================================================= - fi + print_info 2 "=================================================================" 1 0 1 + print_info 2 "About to add these files from '${PWD}' to cpio archive:" 1 0 1 + print_info 2 "$(find . | xargs ls -ald)" 1 0 1 + print_info 2 "=================================================================" 1 0 1 } append_devices() {