Go to file
Stoiko Ivanov 3a982230c1 proxmox-boot: maintscript: change logic whether to add diversion
Deciding whether or not to add the diversion based on the version
alone fails quite hard in case pve-kernel-helper is in dpkg-state 'rc'
(removed not purged) as reported in our community forum[0]:
* removing pve-kernel-helper removes the diversion of grub-install
* if config-files are still present the preinst script gets called
  with the version of the config-files (the version that got removed)
* if the version was newer than 6.4-1~ then no diversion is added
* unpacking fails, because grub-install would be overwritten leaving
  pve-kernel-helper in state 'ic'

Explicitly checking whether the diversion is in place sounds like a
robust approach here.

downside: documentation on dpkg-divert in maintainer scripts [1] uses
the version approach.

[0] https://forum.proxmox.com/threads/pve-kernel-helper-wont-install.90029/
[1] https://www.debian.org/doc/debian-policy/ap-pkg-diversions.html

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2021-07-08 08:44:35 +02:00
bin proxmox-boot: divert call to grub-install to p-b-t init 2021-07-08 08:44:35 +02:00
debian proxmox-boot: maintscript: change logic whether to add diversion 2021-07-08 08:44:35 +02:00
proxmox-boot proxmox-boot: redirect stdout in update-grub snippet 2021-06-24 14:21:01 +02:00
Makefile buildsys: change upload dist to bullseye and add pbs 2021-06-23 10:59:22 +02:00