pve-host: update-grub ohne ZFS-Root wirklich ausführen
ci / test (push) Failing after 27s

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 <noreply@anthropic.com>
This commit is contained in:
Robert Rapp
2026-10-12 19:00:33 +02:00
co-authored by Claude Opus 5.5
parent ac91744ce0
commit 9b2ad426da
@@ -3,6 +3,9 @@
ansible.builtin.command: update-initramfs -u -k all ansible.builtin.command: update-initramfs -u -k all
changed_when: true 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 - 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 changed_when: true