From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: System installation from a USB stick Date: Mon, 30 Jun 2014 00:22:31 +0200 Message-ID: <877g3z2w60.fsf@gnu.org> References: <87y4xdhgn3.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44776) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1NUd-0006Dx-Vl for guix-devel@gnu.org; Sun, 29 Jun 2014 18:22:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X1NUZ-0007gD-A6 for guix-devel@gnu.org; Sun, 29 Jun 2014 18:22:39 -0400 Received: from hera.aquilenet.fr ([2a01:474::1]:52767) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1NUY-0007g2-Pf for guix-devel@gnu.org; Sun, 29 Jun 2014 18:22:35 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 848A12F1D for ; Mon, 30 Jun 2014 00:22:33 +0200 (CEST) Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ym8ARFIn4S1d for ; Mon, 30 Jun 2014 00:22:33 +0200 (CEST) Received: from pluto (reverse-83.fdn.fr [80.67.176.83]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 2C8062061 for ; Mon, 30 Jun 2014 00:22:33 +0200 (CEST) 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") 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello! I=E2=80=99ve 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 =E2=80=98xz -d gnu-usb-install-20140629.x86_64.xz=E2=80=99. 2. Copy it as is to a USB stick that of 1GiB or more: dd if=3Dgnu-usb-install-20140629.x86_64 of=3D/dev/sdX where sdX is the device corresponding to the USB stick. Then you can boot on the USB stick. There=E2=80=99s a bit of documentation= on tty2, but it lacks what follows. ;-) To install the system, you would: 1. Configure the network, by running =E2=80=98dhclient eth0=E2=80=99 for = instance. Normally udev automatically loads device drivers (e.g., my laptop uses e1000e for Ethernet), but since it=E2=80=99s a small config kerne= l, it may miss drivers for your system, in which case you=E2=80=99re 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 =E2=80=98guix system init config.scm /mnt=E2=80=99 (add =E2=80=98= --no-grub=E2=80=99 if you don=E2=80=99t 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 . Swap partitions, dm-crypt=E2=80=99d devices a= ren=E2=80=99t 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=3D800MiB as of commit 1ddbd9f. Ludo=E2=80=99. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlOwkagACgkQd92V4upS7PQA4QCghxtIVqGQnxp0zwzFlbAH0GEY 8qsAn1jvbcHu8p7X3a7GG68RfMOdmCce =AZNv -----END PGP SIGNATURE----- --=-=-=--