Improve debug option handling

This commit is contained in:
Albrecht Lohofener
2025-01-20 10:59:50 +01:00
parent c1391d1ca9
commit 0829f66116
+3 -3
View File
@@ -265,14 +265,14 @@ PCI_ARGS="${PCI_1_ARGS}"
info "Booting image using $VERS..."
# See qemu command if debug is enabled
if [[ -z "${DEBUG}" ]]; then
DEBUG_ARGS=""
else
if [[ $DEBUG = "true" ]]; then
set -x # Show final qemu command
# Not working as expected grub output will delete previous log messages
#DEBUG_ARGS="-serial stdio" # Show OpenWrt kernel message in container log
DEBUG_ARGS=""
else
DEBUG_ARGS=""
fi
#************************ FINAL BOOTING ************************