[Unit]
Wants=startup-crashmemory.service
After=startup-crashmemory.service
ConditionPathExists=/node/startup-crashmemory/available
ConditionPathExists=/boot/bzImage.crash

[Service]
StandardOutput=kmsg
StandardError=kmsg
Type=oneshot
ExecStart=/usr/sbin/kexec -p /boot/bzImage.crash --initrd=/boot/grub/initramfs.igz --command-line="root=LABEL=root ro console=ttyS1,115200n8 console=tty0 irqpoll nr_cpus=1 reset_devices panic=5 CRASH"
ExecStop=/usr/sbin/kexec -p -u
RemainAfterExit=yes

[Install]
WantedBy=basic.target