[BUG] The `mode` token in `*.mount` systemd units' `options.conf` files no longer valid
ferricoxide opened this issue · 1 comments
Describe the bug
The RHEL-08-010571 state creates a /etc/systemd/system/boot.mount.d/options.conf
to ensure that when systemd-fstab-generator
creates systemd *.mount
units, filesystems mounted via systemd get the expected mount-options applied. However, the mode
token previously specified as part of the Options=
configuration-directive has been superceded by the standalone DirectoryMode
configuration-directive.
Severity
Will render RHEL 8.9 systems unbootable if this hardener is run.
To Reproduce
Steps to reproduce the behavior:
- Launch a RHEL 8.9 system
- Execute watchmaker in any way that causes the RHEL-08-010571 state to be run
- Reboot system
- Wait for boot-up to halt with an inability to mount the
/boot
filesystem.
Expected behavior
System fully boots and, if /boot
is its own filesystem (prior to the RHEL 8.9 release, /boot
was not a standalone filesystem on either spel AMIs or AMIs published by Red Hat under the RHUI program), it gets mounted
Fix Suggestions
Replace mode
token currently specified via the Options
configuration-parameter with the DirectoryMode
configuration-parameter.
closed by #483