Bug#1024865: grub-pc: enable minimal installation defaults

Daniel Kahn Gillmor dkg at fifthhorseman.net
Sun Nov 27 00:52:33 GMT 2022


Package: grub-pc
Version: 2.06-3~deb11u4

Thanks for pulling in fixes to image and font handling for grub in
2.06-3~deb11u4 -- that additional security is much appreciated.

On many machines, i've been running grub through a serial console for
years, which doesn't exercise any of the image or font-handling code.

On some of those machines, grub lives in its own small (16MiB)
/boot/grub partition.  With the changes from the aforementioned
versions, grub itself (along with unicode.pf2) is significantly larger,
enough so that "dpkg-reconfigure grub-pc" fails with this error message:

```
Installing for i386-pc platform.
grub-install: error: cannot copy `/usr/share/grub/unicode.pf2' to `/boot/grub/fonts/unicode.pf2': No space left on device.
```

The failure comes from when the postinst script for grub-pc invokes
grub-install.

In practice, i can make the installation work with the rather janky
command:

    grub-install /dev/Xda --fonts ''

(where Xda is the appropriate disk)

It ought to be possible for the grub postinst script to know that it's
being installed in a minimal configuration and omit installing
unicode.pf2.  for example, if /etc/default/grub contains
GRUB_TERMINAL=serial or GRUB_TERMINAL=console then it should be
acceptable to omit the font.

thanks for maintaining grub in debian!

           --dkg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-grub-devel/attachments/20221127/24bdc37b/attachment.sig>


More information about the Pkg-grub-devel mailing list