Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Reboot a machine using kexec.
# tell kexec that when we reboot, we want the given kernel image and the given
# initramfs, and that we want to use the exact same kernel command line as was
# used to boot previously
kexec \
-l /boot/vmlinuz-4.7.5-200.fc24.x86_64 \
--initrd /boot/initramfs-4.7.5-200.fc24.x86_64.img \
--reuse-cmdline
# the above doesn't actually do the reboot, so we need to tell kexec to start
# rippin' via systemd
systemctl kexec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.