aboutsummaryrefslogtreecommitdiff
path: root/gnu/build/image.scm
diff options
context:
space:
mode:
authorMathieu Othacehe <othacehe@gnu.org>2020-05-23 19:09:53 +0200
committerMathieu Othacehe <othacehe@gnu.org>2020-05-29 08:40:03 +0200
commit9c1adb240016261d6263e8d7d0308040542f3c60 (patch)
tree85745d8771e0135b7ab574fab0677044ae34a84d /gnu/build/image.scm
parent7202895e5afa9922ba06eaba295645b08d6fd254 (diff)
downloadguix-9c1adb240016261d6263e8d7d0308040542f3c60.tar
guix-9c1adb240016261d6263e8d7d0308040542f3c60.tar.gz
image: Add bootloader installation support.
* gnu/build/image.scm (initialize-root-partition): Add bootloader-package and bootloader-installer arguments. Run the bootloader-installer if defined. * gnu/system/image.scm (system-disk-image): Adapt the partition initializer call accordingly.
Diffstat (limited to 'gnu/build/image.scm')
-rw-r--r--gnu/build/image.scm5
1 files changed, 5 insertions, 0 deletions
diff --git a/gnu/build/image.scm b/gnu/build/image.scm
index b37ea9332a..49faeab466 100644
--- a/gnu/build/image.scm
+++ b/gnu/build/image.scm
@@ -155,6 +155,8 @@ deduplicates files common to CLOSURE and the rest of PREFIX."
#:key
bootcfg
bootcfg-location
+ bootloader-package
+ bootloader-installer
(deduplicate? #t)
references-graphs
(register-closures? #t)
@@ -178,6 +180,9 @@ of the directory of the 'system' derivation."
#:deduplicate? deduplicate?))
references-graphs))
+ (when bootloader-installer
+ (display "installing bootloader...\n")
+ (bootloader-installer bootloader-package #f root))
(when bootcfg
(install-boot-config bootcfg bootcfg-location root)))