From 0bb7afe1e5e6e3240e6d6211b01c1674a363347c Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Fri, 18 Sep 2026 08:58:12 +0100 Subject: Assign missing subordinate IDs during corporate setup --- scripts/canonical.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'scripts/canonical.py') diff --git a/scripts/canonical.py b/scripts/canonical.py index db7f773..6fd83d6 100644 --- a/scripts/canonical.py +++ b/scripts/canonical.py @@ -108,15 +108,20 @@ def check(lab: bool = False) -> None: ["gnome-extensions", "list", "--enabled"], ["flatpak", "list", "--user", "--app"], *[["flatpak", "info", "--user", app] for app in packages("flatpak")], - ["getent", "passwd", str(os.getuid())], - ["getsubids", os.environ.get("USER", "")], - ["getsubids", "-g", os.environ.get("USER", "")], + ["/usr/bin/getent", "passwd", str(os.getuid())], + ["/usr/bin/getsubids", os.environ.get("USER", "")], + ["/usr/bin/getsubids", "-g", os.environ.get("USER", "")], ] failed = False for command in commands: print("\n> " + " ".join(command), flush=True) try: - failed |= subprocess.run(command, check=False).returncode != 0 + result = subprocess.run(command, check=False) + failed |= result.returncode != 0 + if result.returncode and command[0] == "/usr/bin/getsubids": + print( + "Subordinate IDs unavailable. Run just canonical-system to configure local ranges." + ) except FileNotFoundError: print(f"Missing: {command[0]}") failed = True -- cgit v1.3.1