[Unit] Description=Load crashkernel After=syslog.target ConditionKernelCommandLine=crashkernel [Service] Type=oneshot ExecStart=/bin/sh -c 'kexec -p /boot/vmlinuz --append="root=%I irqpoll maxcpus=1 reset_devices init=/etc/shared/lib/exec/crashdumper"' ExecStart=/sbin/sysctl 'kernel.sysrq=1' [Install] WantedBy=multi-user.target