We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1de488 commit 933dcf4Copy full SHA for 933dcf4
ansible/roles/nhc/templates/nhc.conf.j2
@@ -4,7 +4,9 @@
4
* || HOSTNAME="$HOSTNAME_S"
5
6
## Filesystem checks
7
-{% for mount in ansible_mounts %}
+{% for mount in ansible_mounts | rejectattr('mount', 'eq', '/efi') %}
8
+{# /efi is mounted both directly and via systemd1 autofs, which NHC can't cope with #}
9
+{# use `awk '{print $5 " " $10 " " $4 " " $9}' /proc/self/mountinfo | sort -k1` to check that is the only case #}
10
{% set mount_mode = 'rw' if 'rw' in mount.options.split(',') else 'ro' %}
11
{{ ansible_fqdn }} || check_fs_mount_{{ mount_mode }} -t "{{ mount.fstype }}" -s "{{ mount.device }}" -f "{{ mount.mount }}"
12
{% endfor %}
0 commit comments