dracut-module-setup.sh: install /etc/hosts when using fence_kdump

When using fence_kdump, module-setup will create a kdump.conf with
fence_kdump_nodes. The node name comes from the cluster xml, which may
use the hostname alias. Later in kdump stage, "fence_kdump_send alias_1
alias_2" sends out notification to peers. Hence it requires /etc/hosts
and nsswitch.conf to make alias work.

Signed-off-by: Pingfan Liu <piliu@redhat.com>
This commit is contained in:
Pingfan Liu 2018-06-22 10:34:17 +08:00 committed by Dave Young
parent e4a27dde51
commit 92db9cb9f2

View File

@ -703,6 +703,8 @@ kdump_configure_fence_kdump () {
kdump_install_net $node kdump_install_net $node
done done
dracut_install /etc/hosts
dracut_install /etc/nsswitch.conf
dracut_install $FENCE_KDUMP_SEND dracut_install $FENCE_KDUMP_SEND
} }