On Fri, Aug 1, 2014 at 9:07 AM, Peter Humphrey <pe...@prh.myzen.co.uk> wrote:
> Hello list,
>
> I run a couple of chroots on this box to build packages for other boxes on the
> LAN. So far, I haven't worked out what I should populate /etc/mtab with in
> each chroot. Is it enough to "grep ext4 /etc/mtab > /mnt/chroot/etc/mtab"?
> That catches all the physical partitions, but I imagine I need to add some
> /proc, /sys and /dev entries as well, but is there a simple formula for doing
> this?

ln -sf /proc/self/mounts > /etc/mtab

Problem solved, mostly.  I still get some garbage in mount output in
containers, but this seems to be the way everything is going.

Rich

Reply via email to