diff options
Diffstat (limited to 'meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/klibc-reboot.patch')
-rw-r--r-- | meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/klibc-reboot.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/klibc-reboot.patch b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/klibc-reboot.patch new file mode 100644 index 000000000..be1301df6 --- /dev/null +++ b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/klibc-reboot.patch | |||
@@ -0,0 +1,11 @@ | |||
1 | --- a/kexec/kexec.c | ||
2 | +++ b/kexec/kexec.c | ||
3 | @@ -901,7 +901,7 @@ static int my_exec(void) | ||
4 | if (xen_present()) | ||
5 | xen_kexec_exec(); | ||
6 | else | ||
7 | - reboot(LINUX_REBOOT_CMD_KEXEC); | ||
8 | + reboot(LINUX_REBOOT_CMD_KEXEC, NULL); | ||
9 | /* I have failed if I make it here */ | ||
10 | fprintf(stderr, "kexec failed: %s\n", | ||
11 | strerror(errno)); | ||