diff options
author | Dave Young <dyoung@redhat.com> | 2014-05-27 13:52:08 +0800 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2014-05-28 08:44:30 +0900 |
commit | 6f333539533523add760b2512787b06c79e82c13 (patch) | |
tree | 9d093f8238c8240e5827cc4bed1cacd5da82970f /kexec/arch/i386/x86-linux-setup.c | |
parent | c96b723e17eb4af689de494b636d8bded4b98c88 (diff) |
kexec-tools: add noefi arch cmdline option
For kernel boot with efi=old_map or some quirked machines like SGI UV
they use old ioremap instead of 1:1 mapping. But kexec efi support
depends on the 1:1 mapping thus we need to switch to use the old way
There's a kernel patch for exporting the efi flags so we can check the memory
mapping method. But user may want to explictly disable efi boot for unknown
reasons.
So here add a new arch option '--noefi' for this case.
Signed-off-by: Dave Young <dyoung@redhat.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/arch/i386/x86-linux-setup.c')
-rw-r--r-- | kexec/arch/i386/x86-linux-setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kexec/arch/i386/x86-linux-setup.c b/kexec/arch/i386/x86-linux-setup.c index 4437ed7..9271c6c 100644 --- a/kexec/arch/i386/x86-linux-setup.c +++ b/kexec/arch/i386/x86-linux-setup.c @@ -822,7 +822,7 @@ void setup_linux_system_parameters(struct kexec_info *info, { /* get subarch from running kernel */ setup_subarch(real_mode); - if (bzImage_support_efi_boot) + if (bzImage_support_efi_boot && !arch_options.noefi) setup_efi_info(info, real_mode); /* Default screen size */ |