From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Wilms Subject: Re: Chrooting into GuixSD Date: Fri, 15 Jun 2018 20:20:01 +0200 Message-ID: <911b3265-dd96-7223-9825-f46cc8615a09@freenet.de> References: <8FCA4777-D0E1-4379-AF97-FD0785D26585@riseup.net> <5e600d9e-b123-17c0-302f-3f3cd6626e26@crazy-compilers.com> <20180613081346.jhkzdorwjp6albqx@abyayala> <877en0t7oh.fsf@gnu.org> Reply-To: t_w_@freenet.de Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTtMR-00063Z-Vs for guix-devel@gnu.org; Fri, 15 Jun 2018 14:22:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fTtMN-0007A6-Qp for guix-devel@gnu.org; Fri, 15 Jun 2018 14:22:11 -0400 Received: from mout3.freenet.de ([2001:748:100:40::2:5]:46538) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fTtMN-00077k-Ih for guix-devel@gnu.org; Fri, 15 Jun 2018 14:22:07 -0400 Received: from [195.4.92.142] (helo=mjail2.freenet.de) by mout3.freenet.de with esmtpa (ID t_w_@freenet.de) (port 25) (Exim 4.90_1 #2) id 1fTtMK-0002hZ-M6 for guix-devel@gnu.org; Fri, 15 Jun 2018 20:22:04 +0200 Received: from [::1] (port=35258 helo=mjail2.freenet.de) by mjail2.freenet.de with esmtpa (ID t_w_@freenet.de) (Exim 4.90_1 #2) id 1fTtMK-00019h-I9 for guix-devel@gnu.org; Fri, 15 Jun 2018 20:22:04 +0200 Received: from mx3.freenet.de ([195.4.92.13]:50956) by mjail2.freenet.de with esmtpa (ID t_w_@freenet.de) (Exim 4.90_1 #2) id 1fTtKM-0008Cj-1S for guix-devel@gnu.org; Fri, 15 Jun 2018 20:20:02 +0200 Received: from p200300e4f3d0190002e029fffe32e625.dip0.t-ipconnect.de ([2003:e4:f3d0:1900:2e0:29ff:fe32:e625]:45554) by mx3.freenet.de with esmtpsa (ID t_w_@freenet.de) (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256) (port 465) (Exim 4.90_1 #2) id 1fTtKL-0002Rx-St for guix-devel@gnu.org; Fri, 15 Jun 2018 20:20:01 +0200 In-Reply-To: <877en0t7oh.fsf@gnu.org> 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 On 15.06.2018 17:01, Ludovic Courtès wrote: > I haven’t 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’s OK? Well, I tried: cd /path/to/guixsd chroot . /run/current-system/profile/bin/bash source /etc/profile guile /run/current-system/boot --- guile: warning: failed to install locale GC Warning: pthread_getattr_np or pthread_attr_getstack failed for main thread GC Warning: Couldn't read /proc/stat ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0 ;;; or pass the --no-auto-compile argument to disable. ;;; compiling /run/current-system/boot ;;; compiled /home/thorwil/.cache/guile/ccache/2.2-LE-8-3.A/gnu/store/8m935f33cg4qzlr9d44ibqmcrwn5c1r4-boot.go Backtrace: 12 (apply-smob/1 #) In ice-9/boot-9.scm: 705:2 11 (call-with-prompt _ _ #) In ice-9/eval.scm: 619:8 10 (_ #(#(#))) In ice-9/boot-9.scm: 2312:4 9 (save-module-excursion _) 3822:12 8 (_) In /run/current-system/boot: 1:761 7 (_) In unknown file: 6 (primitive-load "/gnu/store/llka25n1x5l1nj82mr7xs8pi1if?") In ice-9/eval.scm: 619:8 5 (_ #f) In ./gnu/build/activation.scm: 439:33 4 (activate-current-system _) 435:31 3 (boot-time-system) In ./gnu/build/linux-boot.scm: 90:3 2 (linux-command-line) In ice-9/ports.scm: 439:11 1 (call-with-input-file "/proc/cmdline" # ?) In unknown file: 0 (open-file "/proc/cmdline" "r" #:encoding #f # #f) ERROR: In procedure open-file: In procedure open-file: No such file or directory: "/proc/cmdline" --- I _guess_ if I'd bind proc, I would then find out dev and sys has to be taken care of, too, leading back to what I had already. -- Thorsten Wilms thorwil's design for free software: http://thorwil.wordpress.com/