tier-0: Add /usr/lib/{passwd,group} to dracut

On image mode systems we use nss-altfiles this,
change makes sure dracut uses them. This fix also
fixes kdump writing over NFS.
This commit is contained in:
Joseph Marrero 2024-08-15 16:34:53 -04:00 committed by Joseph Marrero Corchado
parent 8b551127e6
commit e01020ddc2
1 changed files with 6 additions and 0 deletions

View File

@ -16,3 +16,9 @@ postprocess:
# We want this for systemd-cryptsetup tpm2 locking
add_dracutmodules+=" systemd-cryptsetup tpm2-tss "
EOF
cat > /usr/lib/dracut/dracut.conf.d/59-altfiles.conf << 'EOF'
# https://issues.redhat.com/browse/RHEL-49590
# On image mode systems we use nss-altfiles for passwd and group,
# this makes sure dracut uses them which also fixes kdump writing to NFS.
install_items+=" /usr/lib/passwd /usr/lib/group "
EOF