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
echo "Warning: no internet connection detected — continuing in answerfile mode."
else
echo "No internet connection detected. Launching nmtui..."
nmtui
echo "No internet connection detected."
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
echo "Warning: still offline. Packages cannot be downloaded without network."
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
echo "Warning: no internet connection detected — continuing in answerfile mode."
else
echo "No internet connection detected. Launching nmtui..."
nmtui
echo "No internet connection detected."
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
echo "Warning: still offline. Packages cannot be downloaded without network."
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"
else
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."
nmtui
" 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."
if ! ping -c1 -W3 archlinux.org &>/dev/null; then
tui_yesno " Still Offline " \
" 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
dialog --backtitle "$BACKTITLE" \
--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
nmtui
--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
if ! ping -c1 -W3 archlinux.org &>/dev/null; then
dialog --backtitle "$BACKTITLE" \
--title " Still Offline " \