]> git.proxmox.com Git - proxmox-kernel-helper.git/commitdiff
helpers postinst: fixup initrd onetime after update
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 14 Feb 2022 14:08:28 +0000 (15:08 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 14 Feb 2022 14:08:28 +0000 (15:08 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
debian/pve-kernel-helper.postinst

index 891396cbf62f173f7f6e1f49d7324326e9750df7..634af3d3b36d297bf1cfa3cc6b3c962ef6fa1bdb 100644 (file)
@@ -8,6 +8,10 @@ case "$1" in
             echo "$0: legacy ESP list /etc/kernel/pve-efiboot-uuids found moving to /etc/kernel/proxmox-boot-uuids" 1>&2
             mv /etc/kernel/pve-efiboot-uuids /etc/kernel/proxmox-boot-uuids
         fi
+        if [ -e /boot/initrd.img-5.15.19-2-pve ] && [ -n "$2" ] && dpkg --compare-versions "$2" 'lt' '7.1-11~'; then
+            # FIXME: remove with next version, this is for an internal-only distributed update
+            update-initramfs -uk 5.15.19-2-pve || true
+        fi
         ;;
 esac