Include mdadm configuration in the upgrade initramfs #1095
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently, the mdadm configuration (
/etc/mdadm.conf
and the alternativelocation and config dirs, see
man mdadm.conf
#Files) is explicitly set to notbe included in upgrade initramfs (via
--nomdadmconf
dracut option).However, this might cause errors when there are md raid devices on the
system.
The configuration files should be compatible between RHEL 7, 8, 9.
For example, if md array locations are used in fstab instead of UUIDs:
In this case
/boot
and/
can't be properly mounted, because theirlocation is specified in
mdadm.conf
.Inclusion of
mdadm.conf
in the upgrade initramfs should fix such problems.The file existence check in the target userspace is performed by dracut.
Without the
--mdadmconf
flag the file wouldn't be included at all sincethe upgrade initramfs is
--nohostonly
.