mirror of
https://github.com/flatcar/scripts.git
synced 2026-04-15 10:31:15 +02:00
Entering the SDK via `su` breaks stdout/stderr permissions because the underlying /dev/pts/N device is still owned by root. `sudo` doesn't have this problem. Neither does `runuser`, which might be preferable, but the SDK doesn't have that. This was previously `sudo su`, so changing this to `sudo sudo` might seem logical, but I think the original `sudo` was only there to prevent `su` from asking for a password. That shouldn't happen with a single `sudo` call. Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>