d3ba93671b
grub2-emu on s390 keep network during kexec boot (bsc#1089493) OBS-URL: https://build.opensuse.org/request/show/609125 OBS-URL: https://build.opensuse.org/package/show/Base:System/grub2?expand=0&rev=301
18 lines
674 B
Diff
18 lines
674 B
Diff
Index: grub-2.02/grub-core/loader/emu/linux.c
|
|
===================================================================
|
|
--- grub-2.02.orig/grub-core/loader/emu/linux.c
|
|
+++ grub-2.02/grub-core/loader/emu/linux.c
|
|
@@ -76,9 +76,10 @@ grub_linux_boot (void)
|
|
grub_fatal (N_("Error trying to perform 'systemctl kexec'"));
|
|
|
|
/* need to check read-only root before resetting hard!? */
|
|
- grub_printf("Performing 'kexec -e'");
|
|
+ grub_printf("Performing 'kexec -e -x'");
|
|
kexec[1] = "-e";
|
|
- kexec[2] = NULL;
|
|
+ kexec[2] = "-x";
|
|
+ kexec[3] = NULL;
|
|
rc = grub_util_exec(kexec);
|
|
if ( rc != GRUB_ERR_NONE )
|
|
grub_fatal (N_("Error trying to directly perform 'kexec -e'."));
|