index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Dylan Taylor <dylan@dylanmtaylor.com> | 2021-06-09 23:37:35 -0400 |
---|---|---|
committer | Dylan Taylor <dylan@dylanmtaylor.com> | 2021-06-09 23:37:35 -0400 |
commit | a8dda0716970d6ba9d5bef2cb8b0f4b0ad9fde57 (patch) | |
tree | 8a809882d84f290ef177fdd4eb989e975bd02def /archinstall | |
parent | 3909333ae3f5f5d2b930dbc262c4941bb9c6547c (diff) |
-rw-r--r-- | archinstall/lib/networking.py | 3 |
diff --git a/archinstall/lib/networking.py b/archinstall/lib/networking.py index 0643c9cf..2c261334 100644 --- a/archinstall/lib/networking.py +++ b/archinstall/lib/networking.py @@ -32,7 +32,8 @@ def check_mirror_reachable(): if (exit_code := SysCommand("pacman -Sy").exit_code) == 0: return True elif exit_code == 256: - log("check_mirror_reachable() uses 'pacman -Sy' which requires root.", level=logging.ERROR, fg="red") + if os.geteuid() != 0: + log("check_mirror_reachable() uses 'pacman -Sy' which requires root.", level=logging.ERROR, fg="red") return False |