On Mon, Nov 15, 2010 at 11:11 AM, Peter Stuge 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? > > > //Peter 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? bcm91250a-be space # ls -lh /space/catalyst/tmp/default/stage1-mips4_n32-20101114/tmp/stage1root/bin/bash -rwxr-xr-x 1 root root 880K Nov 15 00:38 /space/catalyst/tmp/default/stage1-mips4_n32-20101114/tmp/stage1root/bin/bash bcm91250a-be space # file /space/catalyst/tmp/default/stage1-mips4_n32-20101114/tmp/stage1root/bin/bash /space/catalyst/tmp/default/stage1-mips4_n32-20101114/tmp/stage1root/bin/bash: ELF 32-bit MSB executable, MIPS, N32 MIPS64 version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, with unknown capability 0x41000000 = 0xf676e75, with unknown capability 0x10000 = 0x70401, stripped Matt