Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/networking.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/archinstall/lib/networking.py b/archinstall/lib/networking.py
index 96e8f3a1..5a60886f 100644
--- a/archinstall/lib/networking.py
+++ b/archinstall/lib/networking.py
@@ -54,6 +54,17 @@ def update_keyring() -> bool:
return False
+# TODO: this should be a function maybe upstream taking a parameter.. copy pasting for now..
+def update_keyring32() -> bool:
+ log("Updating archlinux32-keyring ...", level=logging.INFO)
+ if run_pacman("-Sy --noconfirm archlinux32-keyring").exit_code == 0:
+ return True
+
+ elif os.geteuid() != 0:
+ log("update_keyring32() uses 'pacman -Sy archlinux32-keyring' which requires root.", level=logging.ERROR, fg="red")
+
+ return False
+
def enrich_iface_types(interfaces: Union[Dict[str, Any], List[str]]) -> Dict[str, str]:
result = {}