From 1530128b6ac367d2a7b5f927d57b4d8c5123662f Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 23 Apr 2024 21:13:53 +0200 Subject: [PATCH] unconfigured: start debug shell if auto-installation is enabled without config Allows the user to fetch a configuration manually, we might even do this in a loop, but for now this is better than nothing. Signed-off-by: Thomas Lamprecht --- unconfigured.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/unconfigured.sh b/unconfigured.sh index bbec779..a39e6ad 100755 --- a/unconfigured.sh +++ b/unconfigured.sh @@ -241,8 +241,17 @@ if [ $proxtui -ne 0 ]; then elif [ $start_auto_installer -ne 0 ]; then echo "Caching device info from udev" /usr/bin/proxmox-low-level-installer dump-udev - echo "Fetching answers for automatic installation" - /usr/bin/proxmox-fetch-answer >/run/automatic-installer-answers + + if [ -f /cdrom/auto-installer-mode.toml ]; then + echo "Fetching answers for automatic installation" + /usr/bin/proxmox-fetch-answer >/run/automatic-installer-answers + else + printf "\nAutomatic installation selected but no config for fetching the answer file found!\n" + echo "Starting debug shell, to fetch the answer file manually use:" + echo " proxmox-fetch-answer MODE >/run/automatic-installer-answers" + echo "and enter 'exit' or press 'CTRL' + 'D' when finished." + debugsh || true + fi echo "Starting automatic installation" /usr/bin/proxmox-auto-installer