Brendan Conoboy wrote:
On 12/17/2012 07:57 PM, Jon Masters wrote:
Bind mount /proc, /dev, /sys, and then it'll work just fine. You need
cpuinfo visible for e.g. rpm to determine you are on a hard float system.
Do you also copy the /lib/modules/<KernelVersion> from the hard-float
rootfs to the chroot? IIRC I had to do this.
d.marlin
-----------
Here's some handy shell script to do everything you'll need:
bindmount()
{
mount --bind /dev $1/dev
mount --bind /dev/pts $1/dev/pts
mount --bind /dev/shm $1/dev/shm
mount --bind /proc $1/proc
mount --bind /sys $1/sys
}
bindumount()
{
umount "$1/dev/pts"
umount "$1/dev/shm"
umount "$1/dev"
umount "$1/proc"
umount "$1/sys"
}
This will let you "bindmount /someroot; chroot /someroot; bindumount
/someroot" with ease.
_______________________________________________
arm mailing list
arm@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/arm