xcat-core
xcat-core copied to clipboard
kdump Additional Configuration Settings
The enablekdump
standard xCAT Postscript overwrites the /etc/kdump.conf
configuration file:
246 echo "nfs $KDIP:$KDPATH" > /etc/kdump.conf
247 echo "default shell" >> /etc/kdump.conf
248 #strip "xcat" out of the initramfs for kdump
249 echo "dracut_args --omit \"xcat\"" >> /etc/kdump.conf
This is a bit annoying as this prevents to include additional configuration settings that would be required in a given environment.
In our case, we simply want to integrate the following parameter:
core_collector makedumpfile -l --message-level 1 -d 31
We therefore have:
- Created a
/etc/kdump.conf
syncfile that just contains the above setting. - Changed the
enablekdump
Postscript to append its own content to the configuration file instead of overwriting it entirely.
Is there any smarter way to do so, or is it the best option we have?