Package: desktop-base
Version: 9.0.0
Severity: serious
Justification: Package fails to install because of this

Hi!

People who want to have the GRUB binaries installed (for example to
create VM images with GRUB), but don't want to use GRUB as their
bootloader will (in the case of classic PCs) have the grub-pc-bin [0]
and grub2-common [1] packages installed, but not the grub-pc [2]
package as this contains the scripts for the automatic installation.

This works fine, but unfortunately, desktop-base's postinst contains
the following code:

   202      # Apply GRUB background update into /boot
   203      if which update-grub > /dev/null ; then
   204          # Ensure the background image file has actually been written to 
disc
   205          # before updating.
   206          sync
   207          update-grub
   208      fi

Since update-grub is shipped by the grub2-common package (see [3]),
this test is wrong. The fact that update-grub is available does not
imply that the system uses GRUB to boot. Since update-grub will
obviously fail to run if GRUB is not installed to /boot, this bug
causes desktop-base's postinst to fail, making the package
uninstallable on such systems.

Best regards

Alexander Kurtz

[0] https://packages.debian.org/sid/grub-pc-bin
[1] https://packages.debian.org/sid/grub2-common
[2] https://packages.debian.org/sid/grub-pc
[3] https://packages.debian.org/sid/amd64/grub2-common/filelist

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to