index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | archinstall/lib/networking.py | 10 |
diff --git a/archinstall/lib/networking.py b/archinstall/lib/networking.py index 6b09deba..82754b58 100644 --- a/archinstall/lib/networking.py +++ b/archinstall/lib/networking.py @@ -40,6 +40,16 @@ def check_mirror_reachable() -> bool: return False +def update_keyring() -> bool: + log("Updating archlinux-keyring ...", level=logging.INFO) + if SysCommand("pacman -Sy archlinux-keyring").exit_code == 0: + return True + + elif os.geteuid() != 0: + log("update_keyring() uses 'pacman -Sy archlinux-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 = {} |