From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nils Gillmann Subject: Re: Chrooting into GuixSD Date: Thu, 14 Jun 2018 12:18:56 +0000 Message-ID: <20180614121856.n7os3fotwtpv675k@abyayala> References: <8FCA4777-D0E1-4379-AF97-FD0785D26585@riseup.net> <5e600d9e-b123-17c0-302f-3f3cd6626e26@crazy-compilers.com> <20180613081346.jhkzdorwjp6albqx@abyayala> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55480) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTRCp-0003PR-T1 for guix-devel@gnu.org; Thu, 14 Jun 2018 08:18:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fTRCo-0007Hd-Uh for guix-devel@gnu.org; Thu, 14 Jun 2018 08:18:23 -0400 Received: from conspiracy.of.n0.is ([2a01:4f8:1c0c:7ad0::1]:34898) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fTRCo-0007H6-LJ for guix-devel@gnu.org; Thu, 14 Jun 2018 08:18:22 -0400 Content-Disposition: inline In-Reply-To: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Thorsten Wilms Cc: guix-devel@gnu.org Thorsten Wilms transcribed 1.2K bytes: > On 13.06.2018 10:13, Nils Gillmann wrote: > > > > Is this ability to chroot into GuixSD worth mentioning in the manual? > > > IMHO it is not worth to be mentioned in the manual, as it is the same as > > > for all Linux systems. > > Not really, since you can not*fully* chroot a GuixSD. Some functions > > will not work, like interacting with the daemon or what it was. Last > > time I tried this was at least 1.5 years ago. > > You can interact with the daemon: > > cd /path/to/guix/root > sudo mount --bind /dev dev > sudo mount --bind /proc proc > sudo mount --bind /sys sys > sudo unshare -m sudo chroot . /run/current-system/profile/bin/bash > source /etc/profile > > guix-daemon --build-users-group=guixbuild & > > If you then `su` to a plain user, do `source /etc/profile` again. > > I think all of `guix pull`. `reconfigure` and `package` search, install and > update worked here with that approach. `guix download` failed due to nss > certificates, until I added: > export SSL_CERT_DIR="$HOME/.guix-profile/etc/ssl/certs" > export > SSL_CERT_FILE="$HOME/.guix-profile/etc/ssl/certs/ca-certificates.crt" > export GIT_SSL_CAINFO="$SSL_CERT_FILE" Huh. Okay, cool. Thanks for documeting this at least on the mailing list :)