#787685 grub-pc: postinst script copies /usr/share/grub/unicode.pf2 to wrong path

Package:
grub-pc
Source:
grub2
Description:
GRand Unified Bootloader, version 2 (PC/BIOS version)
Submitter:
Michael Prokop
Date:
2015-06-03 23:06:05 UTC
Severity:
normal
#787685#5
Date:
2015-06-03 23:02:16 UTC
From:
To:
Hi,

the grub-pc postinst script ships the following code (present twice
in the file):

|       for i in /usr/share/grub/unicode.pf2 ; do
|         if test -e $i ; then
|           mkdir -p /boot/grub
|           cp $i /boot/grub/
|         fi
|       done

Recent versions of grub (at least 2.02~beta2-22 as present in
Debian/jessie, seems to be introduced in upstream's git commit
274416e82f458ec AFAICT) expect the unicode.pf2 file to be present in
/boot/grub/fonts/unicode.pf2 instead though:

| source /boot/grub/grub.cfg
| error: file `/boot/grub/fonts/unicode.pf2' not found.
| error: no suitable video mode found.
| grub> ls /boot/grub/
| unicode.pf2 i386-pc/ grub.cfg

AFAICT grub-pc.postinst should copy /usr/share/grub/unicode.pf2 to
/boot/grub/fonts/ nowadays.

regards,
-mika-