From: Alex Kost <alezost@gmail.com>
To: guix-devel@gnu.org
Subject: Re: Initializing a 64bit system using guix on a 32bit OS
Date: Sun, 24 May 2015 21:46:32 +0300 [thread overview]
Message-ID: <87d21pg6ev.fsf@gmail.com> (raw)
In-Reply-To: <87bnhclp1j.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Fri, 22 May 2015 15:28:24 +0200")
Ludovic Courtès (2015-05-22 16:28 +0300) wrote:
> Alex Kost <alezost@gmail.com> skribis:
[...]
>> So I'm wondering is there a way to init a 64-bit system from a 32-bit
>> one or perhaps it's just not possible?
>
> It actually is possible, but a little bit trickier. Mark did it a few
> weeks ago, though in a slightly different context. The following should
> work:
>
> 1. Install an i686 GuixSD, simply with ‘guix system init’, but use an
> x86_64 kernel. To do that, you need to explicitly ask for an
> x86_64 kernel and Guix (so that the daemon accepts to build x86_64
> things) in the OS config:
>
> (define linux-libre-x86_64
> (package (inherit linux-libre)
> (arguments `(#:system "x86_64-linux"
> ,@(package-arguments linux-libre)))))
>
> (define guix-x86_64
> (package (inherit guix)
> (arguments `(#:system "x86_64-linux"
> ,@(package-arguments guix)))))
>
> (define %my-services
> ;; Make sure the ‘guix-daemon’ services uses ‘guix-x86_64’.
> (map (lambda (mservice)
> (mlet %store-monad ((service mservice))
> (if (memq 'guix-daemon (service-provision service))
> (guix-daemon #:guix guix-x86_64)
> (return service))))
> %base-services))
>
> (operating-system
> ;; ...
> (kernel linux-libre-x86_64)
> (services %my-services))
>
> Normally you’ll get the x86_64 kernel and Guix from hydra.gnu.org,
> so no problem. The rest of the user-land will still be 32-bit.
>
> 2. Boot into the new system, and from there run ‘guix system
> reconfigure’ with a cleaned up OS config.
>
> Let us know how it goes!
Mark and Ludovic, thank you very much! Eventually I installed a 64-bit
system from a 32-bit Guix, based on your notes.
Guix is great! Ave Guix!!
--
Alex
prev parent reply other threads:[~2015-05-24 18:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-21 20:04 Initializing a 64bit system using guix on a 32bit OS Alex Kost
2015-05-22 13:28 ` Ludovic Courtès
2015-05-22 17:31 ` Mark H Weaver
2015-05-23 9:24 ` Alex Kost
2015-05-23 14:54 ` Mark H Weaver
2015-05-23 17:53 ` Alex Kost
2015-05-24 18:46 ` Alex Kost [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d21pg6ev.fsf@gmail.com \
--to=alezost@gmail.com \
--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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.