fix(installer): replace nmtui with iwctl instructions in network check

nmtui is not available on the archiso live environment; direct users to
iwctl (WiFi) or ethernet instead, and pause for input before re-checking.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
main
Amir Alexander Abdelbaki 2026-05-21 23:47:36 +02:00
parent 832eb2df5b
commit 33d2fe7715
4 changed files with 12 additions and 8 deletions

View File

@ -106,8 +106,11 @@ if ! ping -c1 -W3 1.1.1.1 &>/dev/null; then
if $AF_MODE; then if $AF_MODE; then
echo "Warning: no internet connection detected — continuing in answerfile mode." echo "Warning: no internet connection detected — continuing in answerfile mode."
else else
echo "No internet connection detected. Launching nmtui..." echo "No internet connection detected."
nmtui echo " Wired: ensure the cable is plugged in."
echo " WiFi: switch to another TTY (Alt+F2) and run: iwctl"
echo ""
read -rp "Press Enter once connected (or Ctrl+C to abort)..."
if ! ping -c1 -W3 1.1.1.1 &>/dev/null; then if ! ping -c1 -W3 1.1.1.1 &>/dev/null; then
echo "Warning: still offline. Packages cannot be downloaded without network." echo "Warning: still offline. Packages cannot be downloaded without network."
read -rp "Continue anyway? [y/N]: " _net_ans read -rp "Continue anyway? [y/N]: " _net_ans

View File

@ -104,8 +104,11 @@ if ! ping -c1 -W3 1.1.1.1 &>/dev/null; then
if $AF_MODE; then if $AF_MODE; then
echo "Warning: no internet connection detected — continuing in answerfile mode." echo "Warning: no internet connection detected — continuing in answerfile mode."
else else
echo "No internet connection detected. Launching nmtui..." echo "No internet connection detected."
nmtui echo " Wired: ensure the cable is plugged in."
echo " WiFi: switch to another TTY (Alt+F2) and run: iwctl"
echo ""
read -rp "Press Enter once connected (or Ctrl+C to abort)..."
if ! ping -c1 -W3 1.1.1.1 &>/dev/null; then if ! ping -c1 -W3 1.1.1.1 &>/dev/null; then
echo "Warning: still offline. Packages cannot be downloaded without network." echo "Warning: still offline. Packages cannot be downloaded without network."
read -rp "Continue anyway? [y/N]: " _net_ans read -rp "Continue anyway? [y/N]: " _net_ans

View File

@ -404,8 +404,7 @@ if ! ping -c1 -W3 archlinux.org &>/dev/null; then
printf "Warning: no internet connection detected.\n" | tee -a "$LOG" printf "Warning: no internet connection detected.\n" | tee -a "$LOG"
else else
tui_msg " No Network Detected " \ tui_msg " No Network Detected " \
" No internet connection found.\n\n nmtui will open so you can configure networking.\n Close nmtui when done to continue the installer." " No internet connection found.\n\n Wired: ensure the cable is plugged in.\n WiFi: switch to another TTY (Alt+F2) and run: iwctl\n\n Press Enter here once connected."
nmtui
if ! ping -c1 -W3 archlinux.org &>/dev/null; then if ! ping -c1 -W3 archlinux.org &>/dev/null; then
tui_yesno " Still Offline " \ tui_yesno " Still Offline " \
" Still no internet connection.\n\n Packages cannot be downloaded without network access.\n\n Continue anyway?" \ " Still no internet connection.\n\n Packages cannot be downloaded without network access.\n\n Continue anyway?" \

View File

@ -231,8 +231,7 @@ if ! ping -c1 -W3 archlinux.org &>/dev/null; then
else else
dialog --backtitle "$BACKTITLE" \ dialog --backtitle "$BACKTITLE" \
--title " No Network Detected " \ --title " No Network Detected " \
--msgbox "\n No internet connection found.\n\n nmtui will open so you can configure networking.\n Close nmtui when done to continue the installer.\n" 11 58 --msgbox "\n No internet connection found.\n\n Wired: ensure the cable is plugged in.\n WiFi: switch to another TTY (Alt+F2)\n and run: iwctl\n\n Press OK once connected.\n" 13 58
nmtui
if ! ping -c1 -W3 archlinux.org &>/dev/null; then if ! ping -c1 -W3 archlinux.org &>/dev/null; then
dialog --backtitle "$BACKTITLE" \ dialog --backtitle "$BACKTITLE" \
--title " Still Offline " \ --title " Still Offline " \