From 7a11b298036254e231c00980af17942d2292a209 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 20 Jun 2023 12:12:56 +0200 Subject: [PATCH] unconfigured: honor proxtui cmndline flag Signed-off-by: Thomas Lamprecht --- unconfigured.sh | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/unconfigured.sh b/unconfigured.sh index 328d54f..9d3a01e 100755 --- a/unconfigured.sh +++ b/unconfigured.sh @@ -6,11 +6,15 @@ trap "err_reboot" ERR parse_cmdline() { proxdebug=0 + proxtui=0 # shellcheck disable=SC2013 # per word splitting is wanted here for par in $(cat /proc/cmdline); do case $par in proxdebug) - proxdebug=1 + proxdebug=1 + ;; + proxtui) + proxtui=1 ;; esac done; @@ -206,8 +210,13 @@ setsid /sbin/agetty -a root --noclear tty3 & /usr/bin/proxmox-low-level-installer dump-env -echo "Starting the installer GUI - see tty2 (CTRL+ALT+F2) for any errors..." -xinit -- -dpi "$DPI" >/dev/tty2 2>&1 +if [ $proxtui -ne 0 ]; then + echo "Starting the TUI installer" + /usr/bin/proxmox-tui-installer +else + echo "Starting the installer GUI - see tty2 (CTRL+ALT+F2) for any errors..." + xinit -- -dpi "$DPI" >/dev/tty2 2>&1 +fi # just to be sure everything is on disk sync -- 2.39.2