From 9b2ad426da11fe82a0e41c41e34c348941a75753 Mon Sep 17 00:00:00 2001 From: Robert Rapp Date: Mon, 12 Oct 2026 19:00:33 +0200 Subject: [PATCH] =?UTF-8?q?pve-host:=20update-grub=20ohne=20ZFS-Root=20wir?= =?UTF-8?q?klich=20ausf=C3=BChren?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit proxmox-boot-tool refresh endet ohne proxmox-boot-uuids mit Exit 0, die Verkettung mit || hat update-grub deshalb nie erreicht. Co-Authored-By: Claude Opus 5.5 --- platform/proxmox/ansible/roles/pve-host/handlers/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platform/proxmox/ansible/roles/pve-host/handlers/main.yml b/platform/proxmox/ansible/roles/pve-host/handlers/main.yml index f896cd1..056b94d 100644 --- a/platform/proxmox/ansible/roles/pve-host/handlers/main.yml +++ b/platform/proxmox/ansible/roles/pve-host/handlers/main.yml @@ -3,6 +3,9 @@ ansible.builtin.command: update-initramfs -u -k all changed_when: true +# proxmox-boot-tool nur bei ZFS-Root (Variante A). Ohne proxmox-boot-uuids endet es trotzdem mit +# Exit 0, deshalb nicht als `refresh || update-grub` verketten (sonst bleibt grub.cfg alt). - name: refresh boot - ansible.builtin.shell: proxmox-boot-tool refresh 2>/dev/null || update-grub + ansible.builtin.shell: | + if [ -f /etc/kernel/proxmox-boot-uuids ]; then proxmox-boot-tool refresh; else update-grub; fi changed_when: true