From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Chrooting into GuixSD Date: Fri, 15 Jun 2018 17:01:50 +0200 Message-ID: <877en0t7oh.fsf@gnu.org> 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 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44621) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTqEb-000827-0o for guix-devel@gnu.org; Fri, 15 Jun 2018 11:01:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fTqEa-0006Hc-3Y for guix-devel@gnu.org; Fri, 15 Jun 2018 11:01:53 -0400 In-Reply-To: (Thorsten Wilms's message of "Wed, 13 Jun 2018 12:09:13 +0200") 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 Hello, Thorsten Wilms skribis: > 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=3Dguixbuild & > > 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=3D"$HOME/.guix-profile/etc/ssl/certs" > export > SSL_CERT_FILE=3D"$HOME/.guix-profile/etc/ssl/certs/ca-certificates.crt" > export GIT_SSL_CAINFO=3D"$SSL_CERT_FILE" I haven=E2=80=99t tried, but something that would be equivalent to booting = into the system is: chroot /path/to/guixsd /gnu/store/*-guile-2.0.3/bin/guile /run/current-system/boot It may interfere badly with the running system (like when it tries to bring up ttys), but maybe it=E2=80=99s OK? Ludo=E2=80=99.