]> git.proxmox.com Git - pve-kernel-meta.git/commitdiff
kernel pinning: note when overriding previous pin
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 4 Mar 2022 10:05:23 +0000 (11:05 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 4 Mar 2022 10:05:23 +0000 (11:05 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
bin/proxmox-boot-tool

index 872718f777b8d58cc386b97605023a663af8bfc5..218debe0d135c74a0690770fe33beefabce72cb8 100755 (executable)
@@ -443,6 +443,13 @@ pin_kernel() {
                warn "$boot_kernels"
                exit 1
        fi
+
+       if [ -e "$pin_file" ]; then
+               old_pin=$(get_first_line "${pin_file}")
+               if [ "$ver" != "$old_pin" ]; then
+                       echo "Overriding previously pinned version '$old_pin' with '$ver'"
+               fi
+       fi
        echo "$ver" > "$pin_file"
 
        if [ -f "${ESP_LIST}" ]; then