From: ludo@gnu.org (Ludovic Courtès)
To: guix-devel <guix-devel@gnu.org>
Subject: Re: System installation from a USB stick
Date: Mon, 30 Jun 2014 00:22:31 +0200 [thread overview]
Message-ID: <877g3z2w60.fsf@gnu.org> (raw)
In-Reply-To: <87y4xdhgn3.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Tue, 03 Jun 2014 22:39:28 +0200")
[-- Attachment #1: Type: text/plain, Size: 2290 bytes --]
Hello!
I’ve uploaded a USB installation image for x86_64 for testing:
http://www.fdn.fr/~lcourtes/software/guix/gnu-usb-install-20140629.x86_64.xz
SHA1: d36e70d25b81b734fa9558a5446fabb96489ec3b
(100 MiB)
It works like this:
1. Run ‘xz -d gnu-usb-install-20140629.x86_64.xz’.
2. Copy it as is to a USB stick that of 1GiB or more:
dd if=gnu-usb-install-20140629.x86_64 of=/dev/sdX
where sdX is the device corresponding to the USB stick.
Then you can boot on the USB stick. There’s a bit of documentation on
tty2, but it lacks what follows. ;-)
To install the system, you would:
1. Configure the network, by running ‘dhclient eth0’ for instance.
Normally udev automatically loads device drivers (e.g., my laptop
uses e1000e for Ethernet), but since it’s a small config kernel, it
may miss drivers for your system, in which case you’re screwed.
2. Partition, format etc. the target drive; the image includes Parted,
fdisk, and e2fsprogs.
3. Write an OS configuration file, say, config.scm (the image only has
GNU Zile as the editor.) A minimal config looks like this:
(use-modules (gnu) (gnu system grub))
(operating-system
(host-name "foo")
(timezone "Europe/Paris")
(locale "en_US.UTF-8")
(bootloader (grub-configuration (device "/dev/sdX")))
(file-systems
(list (file-system
(device "/dev/sdX1")
(mount-point "/")
(type "ext4")))))
4. Mount the target root file system as /mnt, say.
5. Run ‘guix system init config.scm /mnt’ (add ‘--no-grub’ if you
don’t want to install GRUB.)
6. Unmount /mnt, reboot, and cross fingers.
There are various limitations, so be indulgent. Notably, the kernel has
few drivers. The image is insanely big due to
<http://bugs.gnu.org/17853>. Swap partitions, dm-crypt’d devices aren’t
supported yet.
Still, I would very much like feedback about actual attempts to use
that, about the general procedure, or anything else.
The image was built with
guix system disk-image gnu/system/install.scm --image-size=800MiB
as of commit 1ddbd9f.
Ludo’.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 180 bytes --]
next prev parent reply other threads:[~2014-06-29 22:22 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-03 20:39 System installation from a USB stick Ludovic Courtès
2014-06-29 22:22 ` Ludovic Courtès [this message]
2014-07-01 12:06 ` David Thompson
2014-07-01 21:50 ` David Thompson
2014-07-02 10:22 ` Ludovic Courtès
2014-07-02 11:40 ` David Thompson
2014-07-02 12:23 ` Ludovic Courtès
2014-07-02 10:45 ` Ludovic Courtès
2014-07-03 0:18 ` David Thompson
2014-07-15 14:27 ` Alex Sassmannshausen
2014-07-16 7:14 ` Adam Pribyl
2014-07-16 14:00 ` Ludovic Courtès
2014-07-16 10:02 ` John Darrington
2014-07-16 14:00 ` Ludovic Courtès
2014-07-18 7:04 ` Ludovic Courtès
2014-07-18 11:27 ` Adam Pribyl
2014-07-18 11:28 ` Adam Pribyl
2014-07-18 11:51 ` David Thompson
2014-07-18 18:12 ` Adam Pribyl
2014-07-19 10:52 ` Ludovic Courtès
2014-07-19 12:02 ` Adam Pribyl
2014-07-19 13:15 ` Ludovic Courtès
2014-07-19 13:39 ` Adam Pribyl
2014-07-19 13:47 ` Adam Pribyl
2014-07-19 16:21 ` Ludovic Courtès
2014-07-19 17:14 ` Adam Pribyl
2014-07-20 8:58 ` Ludovic Courtès
2014-07-20 13:48 ` Ludovic Courtès
2014-07-23 15:58 ` Ludovic Courtès
2014-07-24 10:09 ` Adam Pribyl
2014-07-24 11:17 ` Ludovic Courtès
2014-07-24 11:57 ` David Thompson
2014-07-24 14:10 ` Adam Pribyl
2014-07-24 14:26 ` David Thompson
2014-07-24 21:03 ` Ludovic Courtès
2014-07-21 7:44 ` Adam Pribyl
2014-07-21 16:09 ` Ludovic Courtès
2014-07-21 18:16 ` Adam Pribyl
2014-07-21 18:43 ` Adam Pribyl
2014-07-21 21:30 ` Ludovic Courtès
2014-07-21 19:02 ` Adam Pribyl
2014-07-21 21:40 ` Ludovic Courtès
2014-07-21 21:59 ` Ludovic Courtès
2014-07-22 16:21 ` Ludovic Courtès
2014-07-22 20:26 ` Andreas Enge
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=877g3z2w60.fsf@gnu.org \
--to=ludo@gnu.org \
--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).