chroot: fix args.user (MR 2252)

config.user and args.user are distinct, don't combine them.

Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
Caleb Connolly 2024-06-08 04:35:55 +02:00 committed by Oliver Smith
parent bc0b6e39e8
commit 3473422639
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
2 changed files with 2 additions and 2 deletions

View file

@ -65,7 +65,7 @@ def init(args: PmbArgs) -> PmbArgs:
# Override config at runtime with command line arguments
for key, _ in vars(config).items():
if key.startswith("_"):
if key.startswith("_") or key == "user":
continue
value = getattr(args, key, None)
if value: