It's the job of installers to do that after a fresh install.
[ Dimitri John Ledkov ]
* grub-install: Add backup and restore.
+ * Don't call grub-install on fresh install of grub-pc. It's the job of
+ installers to do that after a fresh install.
-- Ian Campbell <ijc@debian.org> Sat, 27 Jun 2020 10:32:02 +0100
elif running_in_container; then
# Skip grub-install in containers.
:
- elif test -z "$2" || test -e /boot/grub/core.img || \
+ elif test -e /boot/grub/core.img || \
test -e /boot/grub/@FIRST_CPU_PLATFORM@/core.img || \
test "$UPGRADE_FROM_GRUB_LEGACY" || test "$wubi_device"; then
question=grub-pc/install_devices