commit:     cdad1c02a69452f6c3a52d5ce92e5009311e0c25
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 14 09:17:42 2019 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> 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 <whissi <AT> 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() {

Reply via email to