1 |
On Mon, Aug 01, 2016 at 04:46:24PM +0100, Mick wrote |
2 |
> On Monday 01 Aug 2016 11:23:03 waltdnes@××××××××.org wrote: |
3 |
> |
4 |
> > I recommend going with one of 3 "cheats"... |
5 |
> > |
6 |
> > 1) A 32-bit chroot in a 64-bit machine |
7 |
> > |
8 |
> > 2) A QEMU (or VirtualBox) 32-bit guest on a 64-bit host |
9 |
> > |
10 |
> > 3) If you have a spare 64-bit machine, install 32-bit Gentoo on it |
11 |
> > |
12 |
> > I use option 2) both as my distccd server and to manually build Pale |
13 |
> > Moon. The target in both cases is an ancient 32-bit-only Atom netbook. |
14 |
> |
15 |
> I'm trying your cheat (1) above, but I must be doing something wrong: |
16 |
> |
17 |
> gentoo-32bit # linux32 chroot /mnt/iso/gentoo-32bit /bin/bash |
18 |
> chroot: failed to run command ???/bin/bash???: No such file or directory |
19 |
> |
20 |
> gentoo-32bit # ls -la /bin/bash |
21 |
> -rwxr-xr-x 1 root root 705400 Jan 9 2016 /bin/bash |
22 |
> |
23 |
> gentoo-32bit # ls -la ./bin/bash |
24 |
> -rwxr-xr-x 1 root root 677244 Jan 16 2016 ./bin/bash |
25 |
> |
26 |
> gentoo-32bit # linux32 chroot /mnt/iso/gentoo-32bit ./bin/bash |
27 |
> chroot: failed to run command ???./bin/bash???: No such file or directory |
28 |
|
29 |
I believe that "/bin/bash" is the pathname after you switch to the |
30 |
chroot environment. So you would need a 32-bit bash located at |
31 |
/mnt/iso/gentoo-32bit/bin/bash *BEFORE CHROOTING*. See |
32 |
https://lwn.net/Articles/252794/ |
33 |
|
34 |
> What chroot() actually does is fairly simple, it modifies pathname |
35 |
> lookups for a process and its children so that any reference to a path |
36 |
> starting '/' will effectively have the new root, which is passed as |
37 |
> the single argument, prepended onto the path. The current working |
38 |
> directory is left unchanged and relative paths can still refer to |
39 |
> files outside of the new root. |
40 |
|
41 |
-- |
42 |
Walter Dnes <waltdnes@××××××××.org> |
43 |
I don't run "desktop environments"; I run useful applications |