]> git.ipfire.org Git - thirdparty/systemd.git/commit
Fall back to kexec when no kexec binary exists
authorArusekk <arek_koz@o2.pl>
Sun, 22 Mar 2020 09:41:18 +0000 (10:41 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 24 Mar 2020 08:50:11 +0000 (09:50 +0100)
commit71180f8e57f8fbb55978b00a13990c79093ff7b3
treecb58e87202a16f44752ffa8614bdc6247e9fa9d5
parentcdc6c95737d26b1746b446dfe662872d593d23c6
Fall back to kexec when no kexec binary exists

This may be not a popular setup, but in case kexec resides somewhere different
than the default location for KEXEC (`/usr/sbin/kexec`), don't just reboot and
try doing `reboot(RB_KEXEC)` instead, just like what `kexec -e` normally does.
src/shutdown/shutdown.c