On Mon, Nov 15, 2010 at 12:08 PM, Matt Turner <[email protected]> wrote: > On Mon, Nov 15, 2010 at 11:39 AM, Peter Stuge <[email protected]> wrote: >> Matt Turner wrote: >>> >> chroot: failed to run command `/tmp/stage1-preclean-chroot.sh': No such >>> >> file or directory >>> > >>> > Can you check with strace which file it is that is actually missing? >>> >>> Yes, good idea. >>> >>> bcm91250a-be space # strace -o output.strace chroot >>> /space/catalyst/tmp/default/stage1-mips4_n32-20101114/tmp/stage1root/ >>> /bin/bash >>> chroot: failed to run command `/bin/bash': No such file or directory >>> >>> It actually reports >>> execve("/bin/bash", ["/bin/bash"], [/* 27 vars */]) = -1 ENOENT (No >>> such file or directory) >>> >>> But what the heck? >> >> ldd >> /space/catalyst/tmp/default/stage1-mips4_n32-20101114/tmp/stage1root/bin/bash >> >> ? >> //Peter > > bcm91250a-be space # ldd > /space/catalyst/tmp/default/stage1-mips4_n32-20101114/tmp/stage1root/bin/bash > libncurses.so.5 => /lib/libncurses.so.5 (0x2b5da000) > libdl.so.2 => /lib/libdl.so.2 (0x2b630000) > libc.so.6 => /lib/libc.so.6 (0x2b644000) > /lib32/ld.so.1 (0x2b5aa000) > > All these files exist and appear valid except /lib32/ld.so.1. /lib32 > is supposed to be a symlink to /lib, but for whatever reason it wasn't > in my seed stage. I think this is definitely the problem. I'll report > back with confirmation. > > Thanks Peter! > > Matt
Indeed. This was the problem.
