summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorJan Nieuwenhuizen <janneke@gnu.org>2020-03-08 21:17:03 +0100
committerJan Nieuwenhuizen <janneke@gnu.org>2020-03-29 15:31:18 +0200
commit0c962369e9a43dfca43f50a4f921bfcce1c7609a (patch)
treea2e0929b872d3a47531ff8e69d940145c555e128 /gnu
parent111110038d3ff78a354f13130994081db82ee0d4 (diff)
gnu: Add grub-minimal.
* gnu/packages/bootloaders.scm (grub-minimal): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/bootloaders.scm28
1 files changed, 28 insertions, 0 deletions
diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm
index afbd1909bfe..e988a47f093 100644
--- a/gnu/packages/bootloaders.scm
+++ b/gnu/packages/bootloaders.scm
@@ -11,6 +11,7 @@
11;;; Copyright © 2019 nee <nee@cock.li> 11;;; Copyright © 2019 nee <nee@cock.li>
12;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com> 12;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
13;;; Copyright © 2020 Björn Höfling <bjoern.hoefling@bjoernhoefling.de> 13;;; Copyright © 2020 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
14;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
14;;; 15;;;
15;;; This file is part of GNU Guix. 16;;; This file is part of GNU Guix.
16;;; 17;;;
@@ -226,6 +227,33 @@ menu to select one of the installed operating systems.")
226 (license license:gpl3+) 227 (license license:gpl3+)
227 (properties '((cpe-name . "grub2"))))) 228 (properties '((cpe-name . "grub2")))))
228 229
230(define-public grub-minimal
231 (package
232 (inherit grub)
233 (name "grub-minimal")
234 (inputs
235 (fold alist-delete (package-inputs grub)
236 '("lvm2" "mdadm" "fuse" "console-setup")))
237 (native-inputs
238 (fold alist-delete (package-native-inputs grub)
239 '("help2man" "texinfo" "parted" "qemu" "xorriso")))
240 (arguments
241 `(#:configure-flags (list "PYTHON=true")
242 #:phases (modify-phases %standard-phases
243 (add-after 'unpack 'patch-stuff
244 (lambda* (#:key native-inputs inputs #:allow-other-keys)
245 (substitute* "grub-core/Makefile.in"
246 (("/bin/sh") (which "sh")))
247
248 ;; Make the font visible.
249 (copy-file (assoc-ref (or native-inputs inputs)
250 "unifont")
251 "unifont.bdf.gz")
252 (system* "gunzip" "unifont.bdf.gz")
253
254 #t)))
255 #:tests? #f))))
256
229(define-public grub-efi 257(define-public grub-efi
230 (package 258 (package
231 (inherit grub) 259 (inherit grub)