From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Wilms Subject: Re: Chrooting into GuixSD Date: Wed, 13 Jun 2018 12:09:13 +0200 Message-ID: References: <8FCA4777-D0E1-4379-AF97-FD0785D26585@riseup.net> <5e600d9e-b123-17c0-302f-3f3cd6626e26@crazy-compilers.com> <20180613081346.jhkzdorwjp6albqx@abyayala> Reply-To: t_w_@freenet.de Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45145) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fT2kO-0004Kr-Us for guix-devel@gnu.org; Wed, 13 Jun 2018 06:11:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fT2kJ-0000Ff-Ts for guix-devel@gnu.org; Wed, 13 Jun 2018 06:11:24 -0400 Received: from mout0.freenet.de ([2001:748:100:40::2:2]:33538) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fT2kJ-0000CD-Ng for guix-devel@gnu.org; Wed, 13 Jun 2018 06:11:19 -0400 Received: from [195.4.92.141] (helo=mjail1.freenet.de) by mout0.freenet.de with esmtpa (ID t_w_@freenet.de) (port 25) (Exim 4.90_1 #2) id 1fT2kH-0001CH-Ar for guix-devel@gnu.org; Wed, 13 Jun 2018 12:11:17 +0200 Received: from [::1] (port=37562 helo=mjail1.freenet.de) by mjail1.freenet.de with esmtpa (ID t_w_@freenet.de) (Exim 4.90_1 #2) id 1fT2kH-0001pT-70 for guix-devel@gnu.org; Wed, 13 Jun 2018 12:11:17 +0200 Received: from mx6.freenet.de ([195.4.92.16]:53656) by mjail1.freenet.de with esmtpa (ID t_w_@freenet.de) (Exim 4.90_1 #2) id 1fT2iI-0007U9-2m for guix-devel@gnu.org; Wed, 13 Jun 2018 12:09:14 +0200 Received: from p200300e4f3d4c50002e029fffe32e625.dip0.t-ipconnect.de ([2003:e4:f3d4:c500:2e0:29ff:fe32:e625]:52374) by mx6.freenet.de with esmtpsa (ID t_w_@freenet.de) (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256) (port 465) (Exim 4.90_1 #2) id 1fT2iH-0005rI-UQ for guix-devel@gnu.org; Wed, 13 Jun 2018 12:09:14 +0200 In-Reply-To: <20180613081346.jhkzdorwjp6albqx@abyayala> Content-Language: en-GB 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: guix-devel@gnu.org 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" -- Thorsten Wilms thorwil's design for free software: http://thorwil.wordpress.com/