coldreboot

tools to support fast kexec reboots

Install

All systems
curl cmd.cat/coldreboot.sh
Debian Debian
apt-get install kexec-tools
Ubuntu
apt-get install kexec-tools
Arch Arch Linux
pacman -S kexec-tools
image/svg+xml Kali Linux
apt-get install kexec-tools
CentOS
yum install kexec-tools
Fedora
dnf install kexec-tools
Windows (WSL2)
sudo apt-get update sudo apt-get install kexec-tools
Raspbian
apt-get install kexec-tools

kexec-tools

tools to support fast kexec reboots

This package provides tools to load a kernel into memory and then "reboot" directly into that kernel using the kexec system call, bypassing the normal boot process.

molly-guard

protects machines from accidental shutdowns/reboots

The package installs a shell script that overrides the existing shutdown/reboot/halt/poweroff/coldreboot/pm-hibernate/pm-suspend* commands and first runs a set of scripts, which all have to exit successfully, before molly-guard invokes the real command. One of the scripts checks for existing SSH sessions. If any of the four commands are called interactively over an SSH session, the shell script prompts you to enter the name of the host you wish to shut down. This should adequately prevent you from accidental shutdowns and reboots. molly-guard diverts the real binaries to /lib/molly-guard/. You can bypass molly-guard by running those binaries directly.