From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 5FD3D13877A for ; Fri, 1 Aug 2014 14:10:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 786BDE09B9; Fri, 1 Aug 2014 14:10:26 +0000 (UTC) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 695A5E0855 for ; Fri, 1 Aug 2014 14:10:25 +0000 (UTC) Received: by mail-vc0-f173.google.com with SMTP id hy10so6737448vcb.18 for ; Fri, 01 Aug 2014 07:10:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=Ho6cRVu/5ujrIcq2+l0B1XLhI5ESCGmkhvJKvujVWdM=; b=fGifUOjfGYSfnZddT5Gc1HVO1+aqYnkzRwjD+NlzVbR8gm6KUlTLGM1QJnwsJmQj3g eLd/ZIn+2mzDLkzzHUSM/LXMiTnN/KfIiHAQdvJIGf1YsFPnTOC9+JveTZJXZS3pOG20 wli9qiDW9e3c6ehZNC5Y2FnF4lj6AUJ0t+1GhD2fth/yd0X02xEysXe5fbmCFwcRRoVb ZBYbjX3KFmlgTn+Xfj26lm0BS9AFHbOr9huS+gqBYhrVUkf0Y9RXuYAfPYVOt/HcTp1D mOaphT5sBD2R6R3VGQk3Xo20Wm2yJTTW69t+f9goC+uXxTV/fOcfQ0C4RrFiECvmL/R3 gm9g== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.52.239.6 with SMTP id vo6mr5356033vdc.59.1406901751107; Fri, 01 Aug 2014 07:02:31 -0700 (PDT) Sender: freemanrich@gmail.com Received: by 10.52.8.229 with HTTP; Fri, 1 Aug 2014 07:02:31 -0700 (PDT) In-Reply-To: <3566559.YT61t9IyHV@wstn> References: <3566559.YT61t9IyHV@wstn> Date: Fri, 1 Aug 2014 10:02:31 -0400 X-Google-Sender-Auth: S7Az9ISIZVvYYPJikCkIsLIIWtA Message-ID: Subject: Re: [gentoo-user] What to put in chroot mtab From: Rich Freeman To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: b59b4985-ca1a-4f72-bc1a-5bdc7c9cf9c3 X-Archives-Hash: 8b9d42cda741f0a66ff398b2035f1db1 On Fri, Aug 1, 2014 at 9:07 AM, Peter Humphrey 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