gnu: grub: Fix unicode font loading when booting over TFTP.
* gnu/bootloader/grub.scm (eye-candy)(font-file): Fix unicode font loading when booting over TFTP. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
This commit is contained in:
parent
48cccf06ad
commit
03fb57ff77
@ -191,9 +191,18 @@ fi~%"
|
|||||||
(define font-file
|
(define font-file
|
||||||
(let* ((bootloader (bootloader-configuration-bootloader config))
|
(let* ((bootloader (bootloader-configuration-bootloader config))
|
||||||
(grub (bootloader-package bootloader)))
|
(grub (bootloader-package bootloader)))
|
||||||
(normalize-file (file-append grub "/share/grub/unicode.pf2")
|
;; The bootloader-package may be a profile with only symlinks.
|
||||||
store-mount-point
|
;; If network booting, then a symlink to the font may not work on the
|
||||||
store-directory-prefix)))
|
;; server side. Therefore we canonicalize the file name of the font.
|
||||||
|
;; TODO: The font gets installed by (install-grub-efi-netboot) and
|
||||||
|
;; (install-grub-efi). The installed font could be referred to as
|
||||||
|
;; "unicode". But it is currently unclear if (install-grub-disk-image)
|
||||||
|
;; and (install-grub) both install the font as well.
|
||||||
|
;; Actually this should be preferred.
|
||||||
|
#~(canonicalize-path
|
||||||
|
#+(normalize-file (file-append grub "/share/grub/unicode.pf2")
|
||||||
|
store-mount-point
|
||||||
|
store-directory-prefix))))
|
||||||
|
|
||||||
(define image
|
(define image
|
||||||
(normalize-file (grub-background-image config)
|
(normalize-file (grub-background-image config)
|
||||||
|
Loading…
Reference in New Issue
Block a user