summaryrefslogtreecommitdiff
path: root/gnu/bootloader.scm
diff options
context:
space:
mode:
authorMathieu Othacehe <othacehe@gnu.org>2020-05-23 19:09:14 +0200
committerMathieu Othacehe <othacehe@gnu.org>2020-05-29 08:37:13 +0200
commit7feefb3b82186be382725ac2d6b7e9f8953e4a83 (patch)
tree6b352b4bdeec4425ba647047a056a94b3f16ef6d /gnu/bootloader.scm
parent7c5c21fd467cb4554a39569087a118621fc42ec3 (diff)
bootloader: Add 'disk-image-installer'.
* gnu/bootloader.scm (<bootloader>)[disk-image-installer]: New field, (bootloader-disk-image-installer): export it. * gnu/bootloader/grub.scm (install-grub-disk-image): New procedure ... (grub-bootloader): ... used as "disk-image-installer" here. (grub-efi-bootloader): set "disk-image-installer" to #f. * gnu/system/image.scm (root-partition?, find-root-partition): Move to "Helpers" section. (root-partition-index): New procedure. (system-disk-image): Honor disk-image-installer, and use it to install the bootloader directly on the disk-image, if supported.
Diffstat (limited to 'gnu/bootloader.scm')
-rw-r--r--gnu/bootloader.scm5
1 files changed, 4 insertions, 1 deletions
diff --git a/gnu/bootloader.scm b/gnu/bootloader.scm
index 01bdd4acaa9..668caa7fc3f 100644
--- a/gnu/bootloader.scm
+++ b/gnu/bootloader.scm
@@ -1,6 +1,6 @@
1;;; GNU Guix --- Functional package management for GNU 1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2017 David Craven <david@craven.ch> 2;;; Copyright © 2017 David Craven <david@craven.ch>
3;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com> 3;;; Copyright © 2017, 2020 Mathieu Othacehe <m.othacehe@gmail.com>
4;;; Copyright © 2017 Leo Famulari <leo@famulari.name> 4;;; Copyright © 2017 Leo Famulari <leo@famulari.name>
5;;; Copyright © 2019 Ludovic Courtès <ludo@gnu.org> 5;;; Copyright © 2019 Ludovic Courtès <ludo@gnu.org>
6;;; 6;;;
@@ -42,6 +42,7 @@
42 bootloader-name 42 bootloader-name
43 bootloader-package 43 bootloader-package
44 bootloader-installer 44 bootloader-installer
45 bootloader-disk-image-installer
45 bootloader-configuration-file 46 bootloader-configuration-file
46 bootloader-configuration-file-generator 47 bootloader-configuration-file-generator
47 48
@@ -125,6 +126,8 @@ record."
125 (name bootloader-name) 126 (name bootloader-name)
126 (package bootloader-package) 127 (package bootloader-package)
127 (installer bootloader-installer) 128 (installer bootloader-installer)
129 (disk-image-installer bootloader-disk-image-installer
130 (default #f))
128 (configuration-file bootloader-configuration-file) 131 (configuration-file bootloader-configuration-file)
129 (configuration-file-generator bootloader-configuration-file-generator)) 132 (configuration-file-generator bootloader-configuration-file-generator))
130 133