Hi, All
This patchset introduce a new kdump emergency service. It will override the
existing emergency.service. When fatal error occurs, this emergency service
will be triggered and systemd will isolate to emergency path.
This kdump emergency service can will read kdump.conf and act according to the
configired "default action" (reboot/poweroff/halt/shell/dump_to_rootfs).
Along with this patchset, kdump-capture.service is introduced as a service unit
to run kdump.sh. When kdump-capture.service fails, systemd will isolate to
kdump emergency service. I copied all the dependencies from
dracut-pre-pivot.service to kdump-capture.service so that kdump.sh will be
called the correct time window.
WANG Chao (5):
mkdumprd: changes for mount point and options in 2nd kernel
cleanup: extract functions from kdump.sh to kdump-lib.sh
Introduce kdump error handling service
Introduce kdump capture service
disable dracut-emergency.service the whole time
dracut-kdump-capture.service | 32 ++++++++
dracut-kdump-emergency.service | 32 ++++++++
dracut-kdump-error-handler.sh | 10 +++
dracut-kdump.sh | 161 +---------------------------------------
dracut-module-setup.sh | 7 +-
kdump-lib.sh | 163 +++++++++++++++++++++++++++++++++++++++++
kexec-tools.spec | 7 +-
mkdumprd | 25 ++++---
8 files changed, 266 insertions(+), 171 deletions(-)
create mode 100644 dracut-kdump-capture.service
create mode 100644 dracut-kdump-emergency.service
create mode 100755 dracut-kdump-error-handler.sh
--
1.9.0