X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fboot.c;h=29aefa916a8e149b973c69baccbb52b6a6bef799;hp=d054d5d51c24733203fbc0706e0b06c527c8a06a;hb=ee329cc09cfbeefac95efeda31bb9ef839dd1382;hpb=375c81a1b9aa8904dfdd0b1195fe99a1e4a2fa9d diff --git a/discover/boot.c b/discover/boot.c index d054d5d..29aefa9 100644 --- a/discover/boot.c +++ b/discover/boot.c @@ -94,6 +94,21 @@ static int kexec_reboot(int dry_run) if (result) pb_log("%s: failed: (%d)\n", __func__, result); + /* okay, kexec -e -f */ + if (result) { + p = argv; + *p++ = pb_system_apps.kexec; /* 1 */ + *p++ = "-e"; /* 2 */ + *p++ = "-f"; /* 3 */ + *p++ = NULL; /* 4 */ + + result = pb_run_cmd(argv, 1, 0); + } + + if (result) + pb_log("%s: failed: (%d)\n", __func__, result); + + return result; }