Skip to content

Commit b5a621c

Browse files
authored
Merge pull request #294 from agross/issue-292
Ignore the unfixable grub error message when /boot is on zfs
2 parents 2f9dbfa + 955f08d commit b5a621c

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -905,6 +905,7 @@ It can be later removed by unsetting this role variable.
905905
## Troubleshooting
906906

907907
### The APT installation of proxmox-ve no longer responds, Ansible aborts, the SSH session stops.
908+
908909
Add this section to your ``ansible.cfg``.
909910

910911
```yaml
@@ -913,6 +914,19 @@ ssh_args = -o ServerAliveInterval=20
913914
```
914915
[Reference Issue](https://github.com/lae/ansible-role-proxmox/issues/279)
915916

917+
### Proxmox doesn't boot/does not update GRUB config correctly.
918+
919+
There is no known issue for this, however the following error message is silently ignored because of a false positive on certain systems using ZFS:
920+
921+
```
922+
$ sudo update-grub
923+
<...>
924+
/usr/sbin/grub-probe: error: unknown filesystem.
925+
<...>
926+
```
927+
928+
While this error is outside the scope of this role to fix, please open an issue with details if this ignore masks a true positive for your system.
929+
916930
## Developer Notes
917931

918932
When developing new features or fixing something in this role, you can test out

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)