X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=unconfigured.sh;fp=unconfigured.sh;h=dbdb0278a3ba621e7b60c8b8b9ee7fbc09274ad2;hb=327506ccd0a82965e393bb32da095fce4eb6a1dc;hp=a1f942207e421d7fa2598afd63c7297f9cd77df4;hpb=2f96995911930443806dfa3a0ac52a7b16f03692;p=pve-installer.git diff --git a/unconfigured.sh b/unconfigured.sh index a1f9422..dbdb027 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 ;; @@ -233,6 +237,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