]> git.proxmox.com Git - proxmox-kernel-helper.git/commitdiff
proxmox-boot: run p-b-t refresh on update-grub
authorStoiko Ivanov <s.ivanov@proxmox.com>
Fri, 23 Apr 2021 09:04:50 +0000 (11:04 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 23 Apr 2021 11:28:56 +0000 (13:28 +0200)
If the system seems to be using proxmox-boot, simply run it, in
addition to warning the user about the situation.

Since the warning is only printed when update-grub is not called
by dpkg or proxmoxmox-boot-tool, this should be safe, and potentially
help keeping systems bootable.

Suggested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
proxmox-boot/000_proxmox_boot_header

index e230aefb5eb9cb73be6fa35f9877ae292ee672df..c7bcff6cb1fc4770e95b9848ba0555bd93299f3a 100755 (executable)
@@ -15,8 +15,10 @@ if proxmox-boot-tool status --quiet; then
        if [ -z "$DPKG_RUNNING_VERSION" ] && [ -z "$PVE_EFIBOOT_UNSHARED" ]; then
                warn "W: This system is booted via proxmox-boot-tool:"
                warn "W: Running update-grub does not update the correct config!"
-               warn "W: Run 'proxmox-boot-tool refresh' instead."
+               warn "W: Running: 'proxmox-boot-tool refresh'."
                warn ""
+
+               proxmox-boot-tool refresh
        fi
 fi