summaryrefslogtreecommitdiff
path: root/kexec/kexec.c
diff options
context:
space:
mode:
Diffstat (limited to 'kexec/kexec.c')
-rw-r--r--kexec/kexec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kexec/kexec.c b/kexec/kexec.c
index cfd837c..2c696c6 100644
--- a/kexec/kexec.c
+++ b/kexec/kexec.c
@@ -883,10 +883,12 @@ static int my_shutdown(void)
*/
static int my_exec(void)
{
+if (1) {
if (xen_present())
xen_kexec_exec();
else
reboot(LINUX_REBOOT_CMD_KEXEC);
+}
/* I have failed if I make it here */
fprintf(stderr, "kexec failed: %s\n",
strerror(errno));