]> git.proxmox.com Git - pve-kernel-meta.git/commit
proxmox-boot: add pin/unpin functionality for non-p-b-t systems
authorStoiko Ivanov <s.ivanov@proxmox.com>
Fri, 11 Feb 2022 15:15:44 +0000 (16:15 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 22 Feb 2022 12:31:31 +0000 (13:31 +0100)
commit95c28bfa7830ba8b99e204c1610e07c48931b672
tree75780b0e781f2daf462ea0194d59299fcb568929
parentd5a182ad1de73543afcf3021b81f58e9afd0cd58
proxmox-boot: add pin/unpin functionality for non-p-b-t systems

While running `update-grub` directly in this case is a divergence from
the semantics of the command when p-b-t handles booting it makes the
cleanup in the `next-boot` case a bit tidier.

fetching the next-boot version explicitly again before setting the
provided version is to cover the sequence:
p-b-t kernel pin <ver1> --next-boot ; p-b-t kernel pin <ver2>

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Reviewed-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Tested-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
bin/proxmox-boot-tool