[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 3/4] grub-shell: Allow setting the value of debug regardless of i
From: |
Glenn Washburn |
Subject: |
[PATCH 3/4] grub-shell: Allow setting the value of debug regardless of its previous state |
Date: |
Mon, 10 Jul 2023 22:01:18 -0500 |
This allows an invocation of grub-shell to set the value of debug regardless
of the global default environment variable GRUB_SHELL_DEFAULT_DEBUG.
Signed-off-by: Glenn Washburn <development@efficientek.com>
---
tests/util/grub-shell.in | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/util/grub-shell.in b/tests/util/grub-shell.in
index 9669b7227c10..e066105de917 100644
--- a/tests/util/grub-shell.in
+++ b/tests/util/grub-shell.in
@@ -248,6 +248,8 @@ for option in "$@"; do
trim=0 ;;
--debug)
debug=$((debug+1)) ;;
+ --debug=*)
+ debug=$((`echo "$option" | sed -e 's/--debug=//'`)) ;;
--modules=*)
ms=`echo "$option" | sed -e 's/--modules=//' -e 's/,/ /g'`
modules="$modules $ms" ;;
--
2.34.1