Blame SOURCES/98-kexec.rules
|
|
354164 |
SUBSYSTEM=="cpu", ACTION=="add", GOTO="kdump_reload"
|
|
|
354164 |
SUBSYSTEM=="cpu", ACTION=="remove", GOTO="kdump_reload"
|
|
|
354164 |
SUBSYSTEM=="memory", ACTION=="online", GOTO="kdump_reload"
|
|
|
354164 |
SUBSYSTEM=="memory", ACTION=="offline", GOTO="kdump_reload"
|
|
|
354164 |
|
|
|
354164 |
GOTO="kdump_reload_end"
|
|
|
354164 |
|
|
|
354164 |
LABEL="kdump_reload"
|
|
|
354164 |
|
|
|
354164 |
# If kdump is not loaded, calling "kdumpctl reload" will end up
|
|
|
354164 |
# doing nothing, but it and systemd-run will always generate
|
|
|
354164 |
# extra logs for each call, so trigger the "kdumpctl reload"
|
|
|
354164 |
# only if kdump service is active to avoid unnecessary logs
|
|
|
354164 |
RUN+="/bin/sh -c '/usr/bin/systemctl is-active kdump.service || exit 0; /usr/bin/systemd-run --quiet /usr/bin/kdumpctl reload'"
|
|
|
354164 |
|
|
|
354164 |
LABEL="kdump_reload_end"
|