forked from tribes/guix
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9563893a6e | |||
| 75ebfc8834 | |||
| 35866c8106 | |||
| bc2a4daec6 | |||
| be930f24f3 | |||
| 8e82009169 |
+31
-7
@@ -7328,8 +7328,8 @@ Access to @file{/dev/sdX} usually requires root privileges.
|
|||||||
@end enumerate
|
@end enumerate
|
||||||
|
|
||||||
Once this is done, you should be able to reboot the system and boot from
|
Once this is done, you should be able to reboot the system and boot from
|
||||||
the USB stick. The latter usually requires you to get in the BIOS' boot
|
the USB stick. The latter usually requires you to get in the BIOS' or
|
||||||
menu, where you can choose to boot from the USB stick.
|
UEFI boot menu, where you can choose to boot from the USB stick.
|
||||||
|
|
||||||
@xref{Installing GuixSD in a VM}, if, instead, you would like to install
|
@xref{Installing GuixSD in a VM}, if, instead, you would like to install
|
||||||
GuixSD in a virtual machine (VM).
|
GuixSD in a virtual machine (VM).
|
||||||
@@ -7483,6 +7483,17 @@ install BIOS-based GRUB (which is the default), make sure a BIOS Boot
|
|||||||
Partition is available (@pxref{BIOS installation,,, grub, GNU GRUB
|
Partition is available (@pxref{BIOS installation,,, grub, GNU GRUB
|
||||||
manual}).
|
manual}).
|
||||||
|
|
||||||
|
@cindex EFI, installation
|
||||||
|
@cindex UEFI, installation
|
||||||
|
@cindex ESP, EFI system partition
|
||||||
|
If you instead wish to use EFI-based GRUB, a FAT32 @dfn{EFI System Partition}
|
||||||
|
(ESP) is required. This partition should be mounted at @file{/boot/efi} and
|
||||||
|
must have the @code{esp} flag set. E.g., for @command{parted}:
|
||||||
|
|
||||||
|
@example
|
||||||
|
parted /dev/sda set 1 esp on
|
||||||
|
@end example
|
||||||
|
|
||||||
Once you are done partitioning the target hard disk drive, you have to
|
Once you are done partitioning the target hard disk drive, you have to
|
||||||
create a file system on the relevant partition(s)@footnote{Currently
|
create a file system on the relevant partition(s)@footnote{Currently
|
||||||
GuixSD only supports ext4 and btrfs file systems. In particular, code
|
GuixSD only supports ext4 and btrfs file systems. In particular, code
|
||||||
@@ -7522,6 +7533,11 @@ root partition):
|
|||||||
mount LABEL=my-root /mnt
|
mount LABEL=my-root /mnt
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
|
Also mount any other partitions you would like to use on the target
|
||||||
|
system relative to this path. If you have @file{/boot} on a separate
|
||||||
|
partition for example, mount it at @file{/mnt/boot} now so it is found
|
||||||
|
by @code{guix system init} afterwards.
|
||||||
|
|
||||||
Finally, if you plan to use one or more swap partitions (@pxref{Memory
|
Finally, if you plan to use one or more swap partitions (@pxref{Memory
|
||||||
Concepts, swap space,, libc, The GNU C Library Reference Manual}), make
|
Concepts, swap space,, libc, The GNU C Library Reference Manual}), make
|
||||||
sure to initialize them with @command{mkswap}. Assuming you have one
|
sure to initialize them with @command{mkswap}. Assuming you have one
|
||||||
@@ -7596,7 +7612,8 @@ in particular:
|
|||||||
@itemize
|
@itemize
|
||||||
@item
|
@item
|
||||||
Make sure the @code{grub-configuration} form refers to the device you
|
Make sure the @code{grub-configuration} form refers to the device you
|
||||||
want to install GRUB on.
|
want to install GRUB on. You also need to specify the @code{grub-efi}
|
||||||
|
package if you wish to use native UEFI boot.
|
||||||
|
|
||||||
@item
|
@item
|
||||||
Be sure that your partition labels match the value of their respective
|
Be sure that your partition labels match the value of their respective
|
||||||
@@ -7676,10 +7693,12 @@ Boot the USB installation image in an VM:
|
|||||||
@example
|
@example
|
||||||
qemu-system-x86_64 -m 1024 -smp 1 \
|
qemu-system-x86_64 -m 1024 -smp 1 \
|
||||||
-net user -net nic,model=virtio -boot menu=on \
|
-net user -net nic,model=virtio -boot menu=on \
|
||||||
-drive file=guixsd.img \
|
-drive file=guixsd-usb-install-@value{VERSION}.@var{system} \
|
||||||
-drive file=guixsd-usb-install-@value{VERSION}.@var{system}
|
-drive file=guixsd.img
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
|
The ordering of the drives matters.
|
||||||
|
|
||||||
In the VM console, quickly press the @kbd{F12} key to enter the boot
|
In the VM console, quickly press the @kbd{F12} key to enter the boot
|
||||||
menu. Then press the @kbd{2} key and the @kbd{RET} key to validate your
|
menu. Then press the @kbd{2} key and the @kbd{RET} key to validate your
|
||||||
selection.
|
selection.
|
||||||
@@ -7885,7 +7904,7 @@ management, power management, and more, would look like this:
|
|||||||
@include os-config-desktop.texi
|
@include os-config-desktop.texi
|
||||||
@end lisp
|
@end lisp
|
||||||
|
|
||||||
A graphical environment with a choice of lightweight window managers
|
A graphical UEFI system with a choice of lightweight window managers
|
||||||
instead of full-blown desktop environments would look like this:
|
instead of full-blown desktop environments would look like this:
|
||||||
|
|
||||||
@lisp
|
@lisp
|
||||||
@@ -15283,7 +15302,12 @@ The number of seconds to wait for keyboard input before booting. Set to
|
|||||||
The @code{grub-theme} object describing the theme to use.
|
The @code{grub-theme} object describing the theme to use.
|
||||||
|
|
||||||
@item @code{grub} (default: @code{grub})
|
@item @code{grub} (default: @code{grub})
|
||||||
The GRUB package to use.
|
@cindex EFI, bootloader
|
||||||
|
@cindex UEFI, bootloader
|
||||||
|
@cindex BIOS, bootloader
|
||||||
|
The GRUB package to use. Currently either @code{grub}, for ``legacy''
|
||||||
|
x86 BIOS systems, or @code{grub-efi}, for modern systems using the
|
||||||
|
@dfn{Unified Extensible Firmware Interface} (UEFI).
|
||||||
|
|
||||||
@item @code{terminal-outputs} (default: @code{'gfxterm})
|
@item @code{terminal-outputs} (default: @code{'gfxterm})
|
||||||
The output terminals used for the GRUB boot menu, as a list of symbols.
|
The output terminals used for the GRUB boot menu, as a list of symbols.
|
||||||
|
|||||||
@@ -4,23 +4,31 @@
|
|||||||
|
|
||||||
(use-modules (gnu) (gnu system nss))
|
(use-modules (gnu) (gnu system nss))
|
||||||
(use-service-modules desktop)
|
(use-service-modules desktop)
|
||||||
(use-package-modules wm ratpoison certs suckless)
|
(use-package-modules bootloaders certs ratpoison suckless wm)
|
||||||
|
|
||||||
(operating-system
|
(operating-system
|
||||||
(host-name "antelope")
|
(host-name "antelope")
|
||||||
(timezone "Europe/Paris")
|
(timezone "Europe/Paris")
|
||||||
(locale "en_US.utf8")
|
(locale "en_US.utf8")
|
||||||
|
|
||||||
;; Assuming /dev/sdX is the target hard disk, and "my-root"
|
;; Use the UEFI variant of GRUB with the EFI System
|
||||||
;; is the label of the target root file system.
|
;; Partition on /dev/sda1.
|
||||||
(bootloader (grub-configuration (device "/dev/sdX")))
|
(bootloader (grub-configuration (grub grub-efi)
|
||||||
|
(device "/dev/sda1")))
|
||||||
|
|
||||||
(file-systems (cons (file-system
|
;; Assume the target root file system is labelled "my-root".
|
||||||
(device "my-root")
|
(file-systems (cons* (file-system
|
||||||
(title 'label)
|
(device "my-root")
|
||||||
(mount-point "/")
|
(title 'label)
|
||||||
(type "ext4"))
|
(mount-point "/")
|
||||||
%base-file-systems))
|
(type "ext4"))
|
||||||
|
(file-system
|
||||||
|
;; Specify partition here since FAT
|
||||||
|
;; labels are currently unsupported.
|
||||||
|
(device "/dev/sda1")
|
||||||
|
(mount-point "/boot/efi")
|
||||||
|
(type "vfat"))
|
||||||
|
%base-file-systems))
|
||||||
|
|
||||||
(users (cons (user-account
|
(users (cons (user-account
|
||||||
(name "alice")
|
(name "alice")
|
||||||
|
|||||||
Reference in New Issue
Block a user