Skip to content

Commit ec338be

Browse files
committed
Ignore the unfixable grub error message when /boot is on zfs
Closes #292
1 parent 2f9dbfa commit ec338be

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

handlers/main.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,10 @@
3939
- name: update-grub
4040
command: update-grub
4141
register: _pve_grub_update
42-
failed_when: ('error' in _pve_grub_update.stderr)
42+
failed_when: >-
43+
'error' in (
44+
_pve_grub_update.stderr_lines |
45+
reject('equalto', '/usr/sbin/grub-probe: error: unknown filesystem.') |
46+
join('\n')
47+
)
4348
tags: skiponlxc

0 commit comments

Comments
 (0)