by Gary13579 » Wed Feb 29, 2012 8:49 am
$this->bbcode_second_pass_quote('kmihelich', 'M')ake sure you have /proc, /dev, and /sys properly mounted inside the chroot, this will fix the problem.
Assuming you have the chroot at /chroot, run a script like this before working inside the chroot:
$this->bbcode_second_pass_code('', '#!/bin/bash
mount --bind /dev /chroot/dev
mount --bind /dev/pts /chroot/dev/pts
mount --bind /dev/shm /chroot/dev/shm
mount -t proc none /chroot/proc
mount -t sysfs none /chroot/sys')
You sure that script is correct? Should be mount -t proc proc /chroot/proc, right? proc won't be mounted without it.
Another very important thing to do is
ln -s /proc/self/fd /dev/fd
inside of the chroot... this fixes makepkg and abs, at the very least.