[pve-devel] [PATCH v3 16/30] unconfigured: add proxauto as option to start auto installer
Aaron Lauterer
a.lauterer at proxmox.com
Thu Mar 28 14:50:14 CET 2024
Signed-off-by: Aaron Lauterer <a.lauterer at proxmox.com>
---
unconfigured.sh | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/unconfigured.sh b/unconfigured.sh
index 2b371f0..f02336a 100755
--- a/unconfigured.sh
+++ b/unconfigured.sh
@@ -5,6 +5,7 @@ trap "err_reboot" ERR
# NOTE: we nowadays get exec'd by the initrd's PID 1, so we're the new PID 1
parse_cmdline() {
+ proxauto=0
proxdebug=0
proxtui=0
serial=0
@@ -17,6 +18,9 @@ parse_cmdline() {
proxtui)
proxtui=1
;;
+ proxauto)
+ proxauto=1
+ ;;
console=ttyS*)
serial=1
;;
@@ -224,6 +228,10 @@ setsid /sbin/agetty -a root --noclear tty3 &
if [ $proxtui -ne 0 ]; then
echo "Starting the TUI installer"
/usr/bin/proxmox-tui-installer 2>/dev/tty2
+elif [ $proxauto -ne 0 ]; then
+ /usr/bin/proxmox-low-level-installer dump-udev
+ echo "Starting automatic installation"
+ /usr/bin/proxmox-fetch-answer
else
echo "Starting the installer GUI - see tty2 (CTRL+ALT+F2) for any errors..."
xinit -- -dpi "$DPI" -s 0 >/dev/tty2 2>&1
--
2.39.2
More information about the pve-devel
mailing list