Closed omertuc closed 1 month ago
See df8885777d2257a6271ca1a6461673d1d96e99d6
Introduced a regression [1] where it's no longer possible to run the script as root, as the subuid map ends up being empty and this causes an error:
Error: invalid empty host id at UID map: [1 1]
Avoid UID mapping if we're already running as root.
We want to also be able to run the script as root, for example as part of a systemd service.
[1] RHELAI-798
cc @eranco74
Force push reason: DCO
LGTM
Forgot to update duplicated wrapper, followup (& additional fixes) here: https://github.com/containers/ai-lab-recipes/pull/730
Background
See df8885777d2257a6271ca1a6461673d1d96e99d6
Issue
Introduced a regression [1] where it's no longer possible to run the script as root, as the subuid map ends up being empty and this causes an error:
Solution
Avoid UID mapping if we're already running as root.
Motivation
We want to also be able to run the script as root, for example as part of a systemd service.
[1] RHELAI-798