unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Thorsten Wilms <t_w_@freenet.de>
To: Guix-devel <guix-devel@gnu.org>
Subject: Re: Chrooting into GuixSD
Date: Fri, 15 Jun 2018 20:20:01 +0200	[thread overview]
Message-ID: <911b3265-dd96-7223-9825-f46cc8615a09@freenet.de> (raw)
In-Reply-To: <877en0t7oh.fsf@gnu.org>

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 #<catch-closure 1c799c0>)
In ice-9/boot-9.scm:
     705:2 11 (call-with-prompt _ _ #<procedure default-prompt-handle?>)
In ice-9/eval.scm:
     619:8 10 (_ #(#(#<directory (guile-user) 1d26140>)))
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" #<procedure get-?> ?)
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/

  reply	other threads:[~2018-06-15 18:22 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-13  4:04 Chrooting into GuixSD swedebugia
2018-06-13  7:13 ` Hartmut Goebel
2018-06-13  8:13   ` Nils Gillmann
2018-06-13 10:09     ` Thorsten Wilms
2018-06-14 12:18       ` Nils Gillmann
2018-06-14 13:04         ` Ricardo Wurmus
2018-06-14 14:29           ` Oleg Pykhalov
2018-06-14 15:01             ` Ricardo Wurmus
2018-06-15 10:21               ` swedebugia
2018-07-05  8:55                 ` Chris Marusich
2018-06-15 15:01       ` Ludovic Courtès
2018-06-15 18:20         ` Thorsten Wilms [this message]
2018-06-16 15:43           ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=911b3265-dd96-7223-9825-f46cc8615a09@freenet.de \
    --to=t_w_@freenet.de \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).