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:
co-authored by
Claude Opus 5.5
parent
ac91744ce0
commit
9b2ad426da
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user