Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archinstall/lib/networking.py8
-rw-r--r--archinstall/lib/tts.py0
-rw-r--r--examples/guided.py5
-rw-r--r--profiles/lxqt.py8
4 files changed, 18 insertions, 3 deletions
diff --git a/archinstall/lib/networking.py b/archinstall/lib/networking.py
index b0c4b569..8a2f0edd 100644
--- a/archinstall/lib/networking.py
+++ b/archinstall/lib/networking.py
@@ -26,6 +26,14 @@ def list_interfaces(skip_loopback=True):
return interfaces
+def check_mirror_reachable():
+ try:
+ check = SysCommand("pacman -Sy")
+ return check.exit_code == 0
+ except:
+ return False
+
+
def enrich_iface_types(interfaces: dict):
result = {}
for iface in interfaces:
diff --git a/archinstall/lib/tts.py b/archinstall/lib/tts.py
deleted file mode 100644
index e69de29b..00000000
--- a/archinstall/lib/tts.py
+++ /dev/null
diff --git a/examples/guided.py b/examples/guided.py
index 177f4adb..cce06b29 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -4,6 +4,7 @@ import time
import archinstall
from archinstall.lib.hardware import has_uefi
+from archinstall.lib.networking import check_mirror_reachable
if archinstall.arguments.get('help'):
print("See `man archinstall` for help.")
@@ -387,5 +388,9 @@ def perform_installation(mountpoint):
archinstall.log(f"Disk states after installing: {archinstall.disk_layouts()}", level=logging.DEBUG)
+if not check_mirror_reachable():
+ archinstall.log("Arch Linux mirrors are not reachable. Please check your internet connection and try again.", level=logging.INFO, fg="red")
+ exit(1)
+
ask_user_questions()
perform_installation_steps()
diff --git a/profiles/lxqt.py b/profiles/lxqt.py
index 3ee9849d..2419b4fa 100644
--- a/profiles/lxqt.py
+++ b/profiles/lxqt.py
@@ -4,6 +4,9 @@ import archinstall
is_top_level_profile = False
+# NOTE: SDDM is the only officially supported greeter for LXQt, so unlike other DEs, lightdm is not used here.
+# LXQt works with lightdm, but since this is not supported, we will not default to this.
+# https://github.com/lxqt/lxqt/issues/795
__packages__ = [
"lxqt",
"breeze-icons",
@@ -12,8 +15,7 @@ __packages__ = [
"ttf-freefont",
"leafpad",
"slock",
- "lightdm",
- "lightdm-gtk-greeter",
+ "sddm",
]
@@ -45,4 +47,4 @@ if __name__ == 'lxqt':
archinstall.storage['installation_session'].add_additional_packages(__packages__)
# Enable autostart of LXQt for all users
- archinstall.storage['installation_session'].enable_service('lightdm')
+ archinstall.storage['installation_session'].enable_service('sddm')