-user-static includes the wrapper
qemu-debootstrap to do just that, and also copy the required
qemu-user-static.
and i was astonished that doing just 'chroot rootfs' worked, without
explicitly telling 'chroot' to use qemu-arm-static - somehow it decided
automatically to run everything under qemu
I am using centos 6 and developing for an armel platform
i created a rootfs using multistrap/debbootstrap
i copied qemu-arm-static to rootfs/usr/bin/qemu-arm-static
and i was astonished that doing just 'chroot rootfs' worked, without
explicitly telling 'chroot' to use qemu-arm-static - somehow
, without
explicitly telling 'chroot' to use qemu-arm-static - somehow it decided
automatically to run everything under qemu-arm-static without me telling
it
to.
after a restart of the server. rootfs does not work anymore
automatically,
i get a chroot: failed to run command `/bin/bash
target (ARM)?
Do you really need to run QEMU on your target?
and i was astonished that doing just 'chroot rootfs' worked, without
explicitly telling 'chroot' to use qemu-arm-static - somehow it decided
automatically to run everything under qemu-arm-static without me telling it
to.
after
From: Erez D erez0...@gmail.com
To: linux-il linux-il@cs.huji.ac.il
Sent: Tuesday, May 20, 2014 9:14 AM
Subject: qemu and chroot
I am using centos 6 and developing for an armel platform
i created a rootfs using multistrap/debbootstrap
i copied qemu-arm
, the package qemu-user-static includes the wrapper
qemu-debootstrap to do just that, and also copy the required
qemu-user-static.
and i was astonished that doing just 'chroot rootfs' worked, without
explicitly telling 'chroot' to use qemu-arm-static - somehow it decided
automatically to run everything
just 'chroot rootfs' worked, without
explicitly telling 'chroot' to use qemu-arm-static - somehow it decided
automatically to run everything under qemu-arm-static without me telling it
to.
after a restart of the server. rootfs does not work anymore automatically,
i get a chroot: failed to run
Most of the times when I use chroot, I usually do something a-la (from
memory):
for i in proc dev sys; do mount -o bind /$i /chrootdir/$i; done
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il