gnu: grub: Add dependency on efibootmgr.
Suggested by Marius Bakke <mbakke@fastmail.com>. * gnu/packages/grub.scm (grub)[arguments]: In 'patch-stuff', set efibootmgr absolute file name in 'platform.c'. [inputs]: Add EFIBOOTMGR.
This commit is contained in:
parent
5597b3ae08
commit
3eee16130d
1 changed files with 9 additions and 0 deletions
|
@ -115,6 +115,12 @@
|
||||||
(assoc-ref inputs "mdadm")
|
(assoc-ref inputs "mdadm")
|
||||||
"/sbin/mdadm\"")))
|
"/sbin/mdadm\"")))
|
||||||
|
|
||||||
|
;; Ditto for efibootmgr.
|
||||||
|
(substitute* "grub-core/osdep/unix/platform.c"
|
||||||
|
(("efibootmgr")
|
||||||
|
(string-append (assoc-ref inputs "efibootmgr")
|
||||||
|
"/sbin/efibootmgr")))
|
||||||
|
|
||||||
;; Make the font visible.
|
;; Make the font visible.
|
||||||
(copy-file (assoc-ref inputs "unifont") "unifont.bdf.gz")
|
(copy-file (assoc-ref inputs "unifont") "unifont.bdf.gz")
|
||||||
(system* "gunzip" "unifont.bdf.gz")
|
(system* "gunzip" "unifont.bdf.gz")
|
||||||
|
@ -129,6 +135,9 @@
|
||||||
(inputs
|
(inputs
|
||||||
`(("gettext" ,gettext-minimal)
|
`(("gettext" ,gettext-minimal)
|
||||||
|
|
||||||
|
;; For {U,}EFI.
|
||||||
|
("efibootmgr" ,efibootmgr)
|
||||||
|
|
||||||
;; Depend on LVM2 for libdevmapper, used by 'grub-probe' and
|
;; Depend on LVM2 for libdevmapper, used by 'grub-probe' and
|
||||||
;; 'grub-install' to recognize mapped devices (LUKS, etc.)
|
;; 'grub-install' to recognize mapped devices (LUKS, etc.)
|
||||||
("lvm2" ,lvm2)
|
("lvm2" ,lvm2)
|
||||||
|
|
Reference in a new issue