1 |
On 07/02/2017 17:13, Walter Dnes wrote: |
2 |
> On Tue, Feb 07, 2017 at 08:24:40AM +0000, J. Roeleveld wrote |
3 |
> |
4 |
>> I used to do this to build packages for my old 32bit netbook. |
5 |
>> |
6 |
>> To start a 32bit chroot: |
7 |
>> # linux32 chroot <directory> /bin/bash |
8 |
> |
9 |
> I transferred over the CentOS system. It fails on my system with |
10 |
> "Exec format error" |
11 |
> |
12 |
> [i660][root][~] chroot /home/misc/centos65/ /bin/bash |
13 |
> chroot: failed to run command '/bin/bash': Exec format error |
14 |
> |
15 |
> [i660][root][~] linux32 chroot /home/misc/centos65/ /bin/bash |
16 |
> chroot: failed to run command '/bin/bash': Exec format error |
17 |
> |
18 |
> The error is usually due to stuff like trying to run 32-bit code in a |
19 |
> 64-bit environment. |
20 |
> |
21 |
|
22 |
Will it run busybox as the shell? That's usually static and may work. |
23 |
|
24 |
sh is unlikely to work though, on red hat and derivatives it's usually a |
25 |
symlink to bash :-( |
26 |
|
27 |
-- |
28 |
Alan McKinnon |
29 |
alan.mckinnon@×××××.com |