Control: tags -1 patch Here is a proof-of-concept untested patch to address backup.
With this approach, backup suffix is UUID.
--- postinst.in.orig 2022-08-20 05:00:47.915499523 +0900 +++ postinst.in 2022-08-20 05:15:55.732025173 +0900 @@ -330,7 +330,6 @@ echo "WARNING: Bootloader is not properly installed, system may not be bootable" >&2 fi } - case "$1" in configure) . /usr/share/debconf/confmodule @@ -710,6 +709,10 @@ FORCE_EXTRA_REMOVABLE="--force-extra-removable" fi NO_NVRAM="$(no_nvram_arg)" + if -f /boot/efi/EFI/debian/grub.cfg ; then + SUFFIX=$(sed -n -e 's,^search.fs_uuid \([^ ]*\) root.*,\1,p' /boot/efi/EFI/debian/grub.cfg) + cp -f /boot/efi/EFI/debian/grub.cfg /boot/efi/EFI/debian/grub.cfg.$SUFFIX + fi run_grub_install --target="$target" "$FORCE_EXTRA_REMOVABLE" "$NO_NVRAM" fi