update: explain why we use sudo rather than --use-remote-sudo

This commit is contained in:
Jörg Thalheim
2025-07-28 15:55:28 +02:00
parent 85dda9e125
commit de65619442

View File

@@ -182,8 +182,8 @@ def run_machine_update(
]
# If we build on the target host, we need to become root for building.
# TODO: explain why
# TODO: why are we not just using --use-remote-sudo here as well?
# We are not using --use-remote-sudo here, so that our sudo ask proxy work: https://git.clan.lol/clan/clan-core/pulls/3642
# We can't do that yet, when a build host is specified.
if build_host == target_host:
build_host = target_host_root