Commit 9cf72127 authored by Petr Tesarik's avatar Petr Tesarik Committed by Simon Horman
Browse files

kexec-tools: Reset getopt before falling back to legacy syscall



The modules may need to parse the arguments again after
kexec_file_load(2) failed, but getopt is not reset.

This change fixes the --initrd option on s390x. Without this patch,
it will fail to load the initrd on kernels that do not implement
kexec_file_load(2).

Signed-off-by: default avatarPetr Tesarik <ptesarik@suse.com>
Signed-off-by: default avatarSimon Horman <horms@verge.net.au>
parent 4f77da63
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment