summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Wilder <dwilder@us.ibm.com>2006-07-27 11:46:11 -0600
committerEric W. Biederman <ebiederm@xmission.com>2006-07-27 11:46:11 -0600
commite37e5982d97d45f7d85b3a89c7accc3cc9c1f637 (patch)
treeb6d86ef5d9f0695618197c7ef5cdf106a43168d2
parent3b38820ee8e4f4b81d213bd93f438a911eb5f3d6 (diff)
ppc64 ignore args-linux
This patches changes argument parsing for ppc64 for the command "kexec -p". We now ignore the args-linux option. This allows for more consistency of the command line between archs. Intel platforms use the --args-linux option ppc64 dose not. With this change the same command-line can used now on both system types. Signed-off-by: David Wilder <dwilder@us.ibm.com> Signed-off-by: Maneesh Soni <maneesh@in.ibm.com>
-rw-r--r--kexec/arch/ppc64/kexec-elf-ppc64.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kexec/arch/ppc64/kexec-elf-ppc64.c b/kexec/arch/ppc64/kexec-elf-ppc64.c
index 0c2201a..561d5b6 100644
--- a/kexec/arch/ppc64/kexec-elf-ppc64.c
+++ b/kexec/arch/ppc64/kexec-elf-ppc64.c
@@ -93,6 +93,7 @@ int elf_ppc64_load(int argc, char **argv, const char *buf, off_t len,
#define OPT_APPEND (OPT_ARCH_MAX+0)
#define OPT_RAMDISK (OPT_ARCH_MAX+1)
#define OPT_DEVICETREEBLOB (OPT_ARCH_MAX+2)
+#define OPT_ARGS_IGNORE (OPT_ARCH_MAX+3)
static const struct option options[] = {
KEXEC_ARCH_OPTIONS
@@ -100,6 +101,7 @@ int elf_ppc64_load(int argc, char **argv, const char *buf, off_t len,
{ "append", 1, NULL, OPT_APPEND },
{ "ramdisk", 1, NULL, OPT_RAMDISK },
{ "devicetreeblob", 1, NULL, OPT_DEVICETREEBLOB },
+ { "args-linux", 0, NULL, OPT_ARGS_IGNORE },
{ 0, 0, NULL, 0 },
};
@@ -133,6 +135,8 @@ int elf_ppc64_load(int argc, char **argv, const char *buf, off_t len,
case OPT_DEVICETREEBLOB:
devicetreeblob = optarg;
break;
+ case OPT_ARGS_IGNORE:
+ break;
}
}