Let's say for example the host system is running Debian amd64. And on that system, another Debian i386 has been installed inside a folder using debootstrap. Then assume a shell script is running inside the chroot.From inside the chroot, dpkg-architecture / uname -a show only what architecture the host system has (amd64).How do I detect the [package] architecture of the chroot? (i386)
How to detect the architecture of the chroot from inside the chroot?
shell script;chroot;x86;amd