-----Original Message----- From: onitsuka.shinic@fujitsu.com [mailto:onitsuka.shinic@fujitsu.com] Sent: Wednesday, November 6, 2019 1:24 PM To: kexec@lists.fedoraproject.org Subject: [PATCH 0/3]fix /etc/kdump/{pre.d,post.d} interface to set up multiple binary and script files
There is restriction on kdump_pre and kdump_post directives now that can be specified only once in /etc/kdump.conf. However, there are multiple components that need to use the directives.
This patch implements /etc/kdump/{pre.d,post.d} interface to set up multiple binary and script files.
For example, users put multiple binary and script files under /etc/kdump/pre.d directory as below:
# find /etc/kdump/pre.d /etc/kdump/pre.d/50-foo.sh /etc/kdump/pre.d/75-hoge.sh
Then, 50-foo.sh and 75-hoge.sh are executed in order before kdump dump process begins just like kdump_pre directive written in /etc/kdump.conf.
This is composed of the following three patches created based on commit 603cd09b76584a1e3a2363f939cec0b7e29e52fb.
shin-onitsuka (3): dracut-kdump.sh: Execute the binary and script files in /etc/kdump/{pre.d,post.d}. kdumpctl: Check the update of the binary and script files in /etc/kdump/{pre.d,post.d} dracut-module-setup.sh: Install files under /etc/kdump/{pre.d,post.d} into kdump initramfs
Maybe, the following order is more natural because it's consistent with the order of executions:
dracut-module-setup.sh kdumpctl dracut-kdump.sh
dracut-kdump.sh | 36 ++++++++++++++++++++++++++++++++++++ dracut-module-setup.sh | 20 ++++++++++++++++++++ kdumpctl | 12 +++++++++++- 3 files changed, 67 insertions(+), 1 deletion(-)
-- 1.8.3.1 _______________________________________________ kexec mailing list -- kexec@lists.fedoraproject.org To unsubscribe send an email to kexec-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/kexec@lists.fedoraproject.or g