Description of problem:
When passing kdump dns to dracut via "nameserver=x.x.x.x",
the dns provided didn't appear in the "/etc/resolv.conf".
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. In dhcp environment, pass DNS to dracut via nameserver=x.x.x.x" through "/proc/cmdline" or other ways like specified using directive DNS1/DNS2 in "/etc/sysconfig/network-scripts/ifcfg-<config>".
2. Configure /etc/kdump.conf to use network dump target(either nfs or ssh)
Configure /etc/kdump.conf to enable "default shell".
3. After crash, let the kdump progress fail(for example: shutdown remote network), then it will enter a shell.
4. In the shell, "cat /etc/resolv.conf", and can't find the DNS passed in 1).
"/etc/resolv.conf" generated by dracut should contain those DNS items passed through "nameserver=x.x.x.x".
There is a patch("network: dhcp before parsing specified dns through cmdline") posted:
dracut-033.436.el7 already contains this patch
Reproduced on RHEL-7.2RC with dracut-033-359.
Side note: kernel panic was called by executing "kill -6 1" twice
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.