[pve-devel] [PATCH pve-kernel-meta v2 8/8] proxmox-boot: run p-b-t refresh on update-grub

Stoiko Ivanov s.ivanov at proxmox.com
Fri Apr 23 11:04:50 CEST 2021


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 at proxmox.com>
Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
---
v1->v2:
* newly added (as an optional addition - feel free to not apply it)
 proxmox-boot/000_proxmox_boot_header | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/proxmox-boot/000_proxmox_boot_header b/proxmox-boot/000_proxmox_boot_header
index e230aef..c7bcff6 100755
--- a/proxmox-boot/000_proxmox_boot_header
+++ b/proxmox-boot/000_proxmox_boot_header
@@ -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
 
-- 
2.20.1






More information about the pve-devel mailing list