Spade

Mini Shell

Directory:~$ /proc/self/root/usr/lib/udev/rules.d/
Upload File

[Home] [System Details] [Kill Me]
Current File:~$ //proc/self/root/usr/lib/udev/rules.d/98-kexec.rules

SUBSYSTEM=="cpu", ACTION=="add",
GOTO="kdump_reload"
SUBSYSTEM=="cpu", ACTION=="remove",
GOTO="kdump_reload"
SUBSYSTEM=="memory", ACTION=="online",
GOTO="kdump_reload"
SUBSYSTEM=="memory", ACTION=="offline",
GOTO="kdump_reload"

GOTO="kdump_reload_end"

LABEL="kdump_reload"

# If kdump is not loaded, calling "kdumpctl reload" will end up
# doing nothing, but it and systemd-run will always generate
# extra logs for each call, so trigger the "kdumpctl reload"
# only if kdump service is active to avoid unnecessary logs
RUN+="/bin/sh -c '/usr/bin/systemctl is-active kdump.service ||
exit 0; /usr/bin/systemd-run --no-block
/usr/lib/udev/kdump-udev-throttler'"

LABEL="kdump_reload_end"