summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Bakke <mbakke@fastmail.com>2017-05-18 19:24:36 +0200
committerMarius Bakke <mbakke@fastmail.com>2017-05-24 02:56:34 +0200
commit8e82009169ae4d4dc5046c687fa7c20797d84224 (patch)
tree54b65b3e319bb4fef14088cbff1da6ce38b7a38a
parent7c63fff6d0ba1dcd74e1a31c13b501d24d9c66f6 (diff)
doc: Update for UEFI systems.
* doc/guix.texi (USB Stick Installation): Mention UEFI. (Preparing for Installation): Add notes about EFI System Partition, and mounting partitions before init. (Proceeding with the Installation): Mention the GRUB-EFI package. (Using the Configuration System): Lightweight desktop is now a UEFI system. (GRUB Configuration): Expand on package field. Add indexes. * gnu/system/examples/lightweight-desktop.tmpl: Adjust to native EFI configuration.
-rw-r--r--doc/guix.texi32
-rw-r--r--gnu/system/examples/lightweight-desktop.tmpl30
2 files changed, 46 insertions, 16 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 764257a5cd8..f3f57e22f5f 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -7328,8 +7328,8 @@ Access to @file{/dev/sdX} usually requires root privileges.
7328@end enumerate 7328@end enumerate
7329 7329
7330Once this is done, you should be able to reboot the system and boot from 7330Once this is done, you should be able to reboot the system and boot from
7331the USB stick. The latter usually requires you to get in the BIOS' boot 7331the USB stick. The latter usually requires you to get in the BIOS' or
7332menu, where you can choose to boot from the USB stick. 7332UEFI boot menu, where you can choose to boot from the USB stick.
7333 7333
7334@xref{Installing GuixSD in a VM}, if, instead, you would like to install 7334@xref{Installing GuixSD in a VM}, if, instead, you would like to install
7335GuixSD in a virtual machine (VM). 7335GuixSD in a virtual machine (VM).
@@ -7483,6 +7483,17 @@ install BIOS-based GRUB (which is the default), make sure a BIOS Boot
7483Partition is available (@pxref{BIOS installation,,, grub, GNU GRUB 7483Partition is available (@pxref{BIOS installation,,, grub, GNU GRUB
7484manual}). 7484manual}).
7485 7485
7486@cindex EFI, installation
7487@cindex UEFI, installation
7488@cindex ESP, EFI system partition
7489If you instead wish to use EFI-based GRUB, a FAT32 @dfn{EFI System Partition}
7490(ESP) is required. This partition should be mounted at @file{/boot/efi} and
7491must have the @code{esp} flag set. E.g., for @command{parted}:
7492
7493@example
7494parted /dev/sda set 1 esp on
7495@end example
7496
7486Once you are done partitioning the target hard disk drive, you have to 7497Once you are done partitioning the target hard disk drive, you have to
7487create a file system on the relevant partition(s)@footnote{Currently 7498create a file system on the relevant partition(s)@footnote{Currently
7488GuixSD only supports ext4 and btrfs file systems. In particular, code 7499GuixSD only supports ext4 and btrfs file systems. In particular, code
@@ -7522,6 +7533,11 @@ root partition):
7522mount LABEL=my-root /mnt 7533mount LABEL=my-root /mnt
7523@end example 7534@end example
7524 7535
7536Also mount any other partitions you would like to use on the target
7537system relative to this path. If you have @file{/boot} on a separate
7538partition for example, mount it at @file{/mnt/boot} now so it is found
7539by @code{guix system init} afterwards.
7540
7525Finally, if you plan to use one or more swap partitions (@pxref{Memory 7541Finally, if you plan to use one or more swap partitions (@pxref{Memory
7526Concepts, swap space,, libc, The GNU C Library Reference Manual}), make 7542Concepts, swap space,, libc, The GNU C Library Reference Manual}), make
7527sure to initialize them with @command{mkswap}. Assuming you have one 7543sure to initialize them with @command{mkswap}. Assuming you have one
@@ -7596,7 +7612,8 @@ in particular:
7596@itemize 7612@itemize
7597@item 7613@item
7598Make sure the @code{grub-configuration} form refers to the device you 7614Make sure the @code{grub-configuration} form refers to the device you
7599want to install GRUB on. 7615want to install GRUB on. You also need to specify the @code{grub-efi}
7616package if you wish to use native UEFI boot.
7600 7617
7601@item 7618@item
7602Be sure that your partition labels match the value of their respective 7619Be sure that your partition labels match the value of their respective
@@ -7885,7 +7902,7 @@ management, power management, and more, would look like this:
7885@include os-config-desktop.texi 7902@include os-config-desktop.texi
7886@end lisp 7903@end lisp
7887 7904
7888A graphical environment with a choice of lightweight window managers 7905A graphical UEFI system with a choice of lightweight window managers
7889instead of full-blown desktop environments would look like this: 7906instead of full-blown desktop environments would look like this:
7890 7907
7891@lisp 7908@lisp
@@ -15283,7 +15300,12 @@ The number of seconds to wait for keyboard input before booting. Set to
15283The @code{grub-theme} object describing the theme to use. 15300The @code{grub-theme} object describing the theme to use.
15284 15301
15285@item @code{grub} (default: @code{grub}) 15302@item @code{grub} (default: @code{grub})
15286The GRUB package to use. 15303@cindex EFI, bootloader
15304@cindex UEFI, bootloader
15305@cindex BIOS, bootloader
15306The GRUB package to use. Currently either @code{grub}, for ``legacy''
15307x86 BIOS systems, or @code{grub-efi}, for modern systems using the
15308@dfn{Unified Extensible Firmware Interface} (UEFI).
15287 15309
15288@item @code{terminal-outputs} (default: @code{'gfxterm}) 15310@item @code{terminal-outputs} (default: @code{'gfxterm})
15289The output terminals used for the GRUB boot menu, as a list of symbols. 15311The output terminals used for the GRUB boot menu, as a list of symbols.
diff --git a/gnu/system/examples/lightweight-desktop.tmpl b/gnu/system/examples/lightweight-desktop.tmpl
index 389ec8574b0..6fb6283d299 100644
--- a/gnu/system/examples/lightweight-desktop.tmpl
+++ b/gnu/system/examples/lightweight-desktop.tmpl
@@ -4,23 +4,31 @@
4 4
5(use-modules (gnu) (gnu system nss)) 5(use-modules (gnu) (gnu system nss))
6(use-service-modules desktop) 6(use-service-modules desktop)
7(use-package-modules wm ratpoison certs suckless) 7(use-package-modules bootloaders certs ratpoison suckless wm)
8 8
9(operating-system 9(operating-system
10 (host-name "antelope") 10 (host-name "antelope")
11 (timezone "Europe/Paris") 11 (timezone "Europe/Paris")
12 (locale "en_US.utf8") 12 (locale "en_US.utf8")
13 13
14 ;; Assuming /dev/sdX is the target hard disk, and "my-root" 14 ;; Use the UEFI variant of GRUB with the EFI System
15 ;; is the label of the target root file system. 15 ;; Partition on /dev/sda1.
16 (bootloader (grub-configuration (device "/dev/sdX"))) 16 (bootloader (grub-configuration (grub grub-efi)
17 17 (device "/dev/sda1")))
18 (file-systems (cons (file-system 18
19 (device "my-root") 19 ;; Assume the target root file system is labelled "my-root".
20 (title 'label) 20 (file-systems (cons* (file-system
21 (mount-point "/") 21 (device "my-root")
22 (type "ext4")) 22 (title 'label)
23 %base-file-systems)) 23 (mount-point "/")
24 (type "ext4"))
25 (file-system
26 ;; Specify partition here since FAT
27 ;; labels are currently unsupported.
28 (device "/dev/sda1")
29 (mount-point "/boot/efi")
30 (type "vfat"))
31 %base-file-systems))
24 32
25 (users (cons (user-account 33 (users (cons (user-account
26 (name "alice") 34 (name "alice")