feature request: use lowest common 32-bit denominator with `setarch`
The chroot(8)
we perform, when a 32-bit target is requested, happens after we use setarch
to set a 32-bit personality.
Older versions of util-linux
may not include targets like armv7l
, all of which are aliases of arm
(if available). In some cases, not even that is supported.
root@tegra-ubuntu:~# setarch --version && setarch --list
setarch from util-linux 2.31.1
uname26
linux32
linux64
aarch64
In this case, linux32
would set a 32-bit personality.
We also need to evaluate whether the -B
or --32bit
flag should be used, or whether this even matters since we're using 32-bit binaries in the 32-bit rootfs already.