grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/4] grub-shell: Add --verbose to mkrescue when $debug is greater


From: Glenn Washburn
Subject: [PATCH 1/4] grub-shell: Add --verbose to mkrescue when $debug is greater than 2
Date: Mon, 10 Jul 2023 22:01:16 -0500

Since this is fairly verbose output, do not enable first level of debug
is turned on.

Signed-off-by: Glenn Washburn <development@efficientek.com>
---
 tests/util/grub-shell.in | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/util/grub-shell.in b/tests/util/grub-shell.in
index a0ca18e41c3f..5cbe79447e99 100644
--- a/tests/util/grub-shell.in
+++ b/tests/util/grub-shell.in
@@ -422,7 +422,9 @@ fi
 
 if [ x$boot != xnet ] && [ x$boot != xemu ]; then
     pkgdatadir="${builddir}" \
-    exec_show_error "${builddir}/grub-mkrescue" "--output=${isofile}" \
+    exec_show_error "${builddir}/grub-mkrescue" \
+       ${debug:+$([ "$debug" -gt 2 ] && echo -n "--verbose")} \
+       "--output=${isofile}" \
        "--override-directory=${builddir}/grub-core" \
        --rom-directory="${rom_directory}" \
        --locale-directory="${srcdir}/po" \
-- 
2.34.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]