35 lines
1.3 KiB
Diff
35 lines
1.3 KiB
Diff
|
--- kexec-tools-1.101/kexec/arch/i386/kexec-bzImage.c.orig 2007-01-04 13:58:06.000000000 -0500
|
||
|
+++ kexec-tools-1.101/kexec/arch/i386/kexec-bzImage.c 2007-01-04 14:14:07.000000000 -0500
|
||
|
@@ -234,6 +234,9 @@ int bzImage_load(int argc, char **argv,
|
||
|
#define OPT_APPEND (OPT_ARCH_MAX+0)
|
||
|
#define OPT_RAMDISK (OPT_ARCH_MAX+1)
|
||
|
#define OPT_REAL_MODE (OPT_ARCH_MAX+2)
|
||
|
+#define OPT_ARGS_ELF (OPT_ARCH_MAX+3)
|
||
|
+#define OPT_ARGS_LINUX (OPT_ARCH_MAX+4)
|
||
|
+#define OPT_ARGS_NONE (OPT_ARCH_MAX+5)
|
||
|
static const struct option options[] = {
|
||
|
KEXEC_ARCH_OPTIONS
|
||
|
{ "debug", 0, 0, OPT_DEBUG },
|
||
|
@@ -242,6 +245,9 @@ int bzImage_load(int argc, char **argv,
|
||
|
{ "initrd", 1, 0, OPT_RAMDISK },
|
||
|
{ "ramdisk", 1, 0, OPT_RAMDISK },
|
||
|
{ "real-mode", 0, 0, OPT_REAL_MODE },
|
||
|
+ { "args-elf", 0, NULL, OPT_ARGS_ELF },
|
||
|
+ { "args-linux", 0, NULL, OPT_ARGS_LINUX },
|
||
|
+ { "args-none", 0, NULL, OPT_ARGS_NONE },
|
||
|
{ 0, 0, 0, 0 },
|
||
|
};
|
||
|
static const char short_options[] = KEXEC_ARCH_OPT_STR "d";
|
||
|
@@ -276,6 +282,11 @@ int bzImage_load(int argc, char **argv,
|
||
|
case OPT_REAL_MODE:
|
||
|
real_mode_entry = 1;
|
||
|
break;
|
||
|
+ case OPT_ARGS_ELF:
|
||
|
+ case OPT_ARGS_LINUX:
|
||
|
+ case OPT_ARGS_NONE:
|
||
|
+ /* we can ignore these options */
|
||
|
+ break;
|
||
|
}
|
||
|
}
|
||
|
command_line_len = 0;
|