James Le Cuirot 44bd310fb7
sdk_entry.sh: Fix writing to /dev/stdout and /dev/stderr
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>
2026-04-08 11:59:18 +01:00
..