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 765581391DB for ; Sat, 2 Aug 2014 00:22:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6BCFBE0BC8; Sat, 2 Aug 2014 00:22:11 +0000 (UTC) Received: from smtpq2.gn.mail.iss.as9143.net (smtpq2.gn.mail.iss.as9143.net [212.54.34.165]) by pigeon.gentoo.org (Postfix) with ESMTP id 347DAE0B68 for ; Sat, 2 Aug 2014 00:22:10 +0000 (UTC) Received: from [212.54.34.136] (helo=smtp5.gn.mail.iss.as9143.net) by smtpq2.gn.mail.iss.as9143.net with esmtp (Exim 4.71) (envelope-from ) id 1XDN5N-0001Ok-G8 for gentoo-user@lists.gentoo.org; Sat, 02 Aug 2014 02:22:09 +0200 Received: from 53579160.cm-6-8c.dynamic.ziggo.nl ([83.87.145.96] helo=data.antarean.org) by smtp5.gn.mail.iss.as9143.net with esmtp (Exim 4.71) (envelope-from ) id 1XDN5N-0000OP-59 for gentoo-user@lists.gentoo.org; Sat, 02 Aug 2014 02:22:09 +0200 Received: from [10.20.13.30] (unknown [10.20.13.30]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by data.antarean.org (Postfix) with ESMTPSA id EFC0F4C for ; Sat, 2 Aug 2014 02:21:43 +0200 (CEST) User-Agent: K-9 Mail for Android In-Reply-To: References: <3566559.YT61t9IyHV@wstn> <6536155.f0GWtIUbSO@wstn> <53DB95E1.5010709@gmail.com> <9a05ccce-1c76-4c5b-9093-8d8652d58e65@email.android.com> 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 Content-Type: text/plain; charset=UTF-8 Subject: Re: [gentoo-user] What to put in chroot mtab From: "J. Roeleveld" Date: Sat, 02 Aug 2014 02:21:25 +0200 To: gentoo-user@lists.gentoo.org Message-ID: Content-Transfer-Encoding: quoted-printable X-Ziggo-spambar: ---- X-Ziggo-spamscore: -4.9 X-Ziggo-spamreport: ALL_TRUSTED=-1,BAYES_00=-1.9,PROLO_TRUST_RDNS=-3,RDNS_DYNAMIC=0.982 X-Ziggo-Spam-Status: No X-Spam-Status: No X-Spam-Flag: No X-Archives-Salt: 29c62bf7-f9ec-4d2d-9c89-dd80c99dd197 X-Archives-Hash: 5924cc84cae572683a7108851864d202 On 1 August 2014 23:44:11 CEST, "Canek Pel=C3=A1ez Vald=C3=A9s" wrote: >On Fri, Aug 1, 2014 at 4:39 PM, J. Roeleveld >wrote: >> On 1 August 2014 23:33:05 CEST, "Canek Pel=C3=A1ez Vald=C3=A9s" > wrote: >>>On Fri, Aug 1, 2014 at 4:31 PM, Canek Pel=C3=A1ez Vald=C3=A9s > >>>wrote: >>>> On Aug 1, 2014 3:46 PM, "J. Roeleveld" wrote: >>>>> >>>>> On 1 August 2014 15:28:01 CEST, Dale wrote: >>>>> >Peter Humphrey wrote: >>>>> >> On Friday 01 August 2014 14:07:08 I wrote: >>>>> >> >>>> >>>> That's still too long :) >>>> >>>> With systemd-nspawn, you only do: >>>> >>>> systemd-nspawn -D /mnt/gentoo >>>> >>>> Systemd takes care of /dev, /sys, etc. If the container has systemd >>>> installed, you can do >>>> >>>> systemd-nspawn -bD /mnt/gentoo >>>> >>>> and the services inside the container will be started like in a >>>regular boot >>>> (you'll need to set the root password for the container). >>>> >>>> Also, if you want to share the /usr/portage directory between host >>>and >>>> container, you only need to >>>> >>>> systemd-nspawn --bind=3D/usr/portage -bD /mnt/gentoo >>> >>>Oh, and I forgot: to stop the container, just log out if the >container >>>runs OpenRC, or run systemctl poweroff if the container runs systemd. >>> >>>Regards. >> >> That script could easily be written in C and compiled and then called >in a similar way as systemd-nspawn. > >And yet nobody has done it and got it included in most distributions. Because there is no need. If all you need is merge a few lines into a single command, puttincg it i= nto a shell script is quicker and far easier to maintain. >> What your command does is basically the same apart from doing >something different from using chroots. > >True, but still it's shorter ;) chroot.sh is only 9 characters. Naming the script 'a' would be even shorter. -- Joost --=20 Sent from my Android device with K-9 Mail. Please excuse my brevity.