From ea8c6f7f61cf0889f834b23f7316fc7157baa599 Mon Sep 17 00:00:00 2001 From: Neil Horman Date: Thu, 4 Jan 2007 19:19:31 +0000 Subject: [PATCH] Related: bz 221272 --- kexec-tools-1.101-bzimage-options.patch | 34 +++++++++++++++++++++++++ kexec-tools.spec | 6 ++--- 2 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 kexec-tools-1.101-bzimage-options.patch diff --git a/kexec-tools-1.101-bzimage-options.patch b/kexec-tools-1.101-bzimage-options.patch new file mode 100644 index 0000000..7ede3f3 --- /dev/null +++ b/kexec-tools-1.101-bzimage-options.patch @@ -0,0 +1,34 @@ +--- 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; diff --git a/kexec-tools.spec b/kexec-tools.spec index bf1bee4..fa550a1 100644 --- a/kexec-tools.spec +++ b/kexec-tools.spec @@ -1,6 +1,6 @@ Name: kexec-tools Version: 1.101 -Release: 55%{?dist} +Release: 56%{?dist} License: GPL Group: Applications/System Summary: The kexec/kdump userspace component. @@ -222,10 +222,10 @@ rm -f %{_datadir}/firstboot/modules/firstboot_kdump.py %doc kexec-kdump-howto.txt %changelog -* Thu Jan 04 2007 Neil Horman - 1.101-6%{dist} +* Thu Jan 04 2007 Neil Horman - 1.101-56%{dist} - Fix option parsing problem for bzImage files (bz 221272) -* Fri Dec 15 2006 Neil Horman - 1.101-5%{dist} +* Fri Dec 15 2006 Neil Horman - 1.101-55%{dist} - Wholesale update of RHEL5 revisions 55-147 * Tue Aug 29 2006 Neil Horman - 1.101-54%{dist}