On 07/02/2017 17:13, Walter Dnes wrote: > On Tue, Feb 07, 2017 at 08:24:40AM +0000, J. Roeleveld wrote > >> I used to do this to build packages for my old 32bit netbook. >> >> To start a 32bit chroot: >> # linux32 chroot <directory> /bin/bash > > I transferred over the CentOS system. It fails on my system with > "Exec format error" > > [i660][root][~] chroot /home/misc/centos65/ /bin/bash > chroot: failed to run command '/bin/bash': Exec format error > > [i660][root][~] linux32 chroot /home/misc/centos65/ /bin/bash > chroot: failed to run command '/bin/bash': Exec format error > > The error is usually due to stuff like trying to run 32-bit code in a > 64-bit environment. >
Will it run busybox as the shell? That's usually static and may work. sh is unlikely to work though, on red hat and derivatives it's usually a symlink to bash :-( -- Alan McKinnon alan.mckin...@gmail.com