From 89cdf89ac163930fe68705b982f7717cebbdcf66203e1fbccf0347fb557742d7 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Tue, 6 Feb 2007 23:28:27 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/elilo?expand=0&rev=2 --- elilo-longer-commandline.diff | 35 +++++++++++++++++++++++++++++++++++ elilo.changes | 7 +++++++ elilo.spec | 12 +++++++++--- 3 files changed, 51 insertions(+), 3 deletions(-) create mode 100644 elilo-longer-commandline.diff diff --git a/elilo-longer-commandline.diff b/elilo-longer-commandline.diff new file mode 100644 index 0000000..cf5a32c --- /dev/null +++ b/elilo-longer-commandline.diff @@ -0,0 +1,35 @@ +References: 242702 + +Increase command line size to 2048 chars. + +--- + elilo.c | 2 +- + elilo.h | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +Index: b/elilo.h +=================================================================== +--- a/elilo.h ++++ b/elilo.h +@@ -57,7 +57,7 @@ + #define ELILO_DEFAULT_TIMEOUT ELILO_TIMEOUT_INFINITY + #define ELILO_TIMEOUT_INFINITY (~0UL) + +-#define CMDLINE_MAXLEN 512 /* needed by ia32 */ ++#define CMDLINE_MAXLEN 2048 /* needed by ia32 */ + #define FILENAME_MAXLEN 256 + #define MAX_ARGS 256 + /* Just pick an arbitrary number that's high enough for now :o) */ +Index: b/elilo.c +=================================================================== +--- a/elilo.c ++++ b/elilo.c +@@ -87,7 +87,7 @@ do_kernel_load(CHAR16 *kname, kdesc_t *k + INTN + kernel_load(EFI_HANDLE image, CHAR16 *kname, kdesc_t *kd, memdesc_t *imem, memdesc_t *mmem) + { +- CHAR16 kernel[CMDLINE_MAXLEN]; ++ CHAR16 kernel[FILENAME_MAXLEN]; + + /* + * Do the vm image switch here diff --git a/elilo.changes b/elilo.changes index 885e5f0..f9f4604 100644 --- a/elilo.changes +++ b/elilo.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Feb 6 18:33:55 CET 2007 - bwalle@suse.de + +- elilo.efi + * increase command line size to 2048 (as in >= 2.6.20-rc6-mm1) + (#242702) + ------------------------------------------------------------------- Fri Nov 10 10:37:13 CET 2006 - schwab@suse.de diff --git a/elilo.spec b/elilo.spec index 83657f7..7c4a7f6 100644 --- a/elilo.spec +++ b/elilo.spec @@ -1,7 +1,7 @@ # # spec file for package elilo (Version 3.6) # -# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # @@ -14,16 +14,17 @@ Name: elilo URL: http://elilo.sourceforge.net/ Summary: EFI Linux Loader Version: 3.6 -Release: 31 +Release: 44 Group: System/Boot Autoreqprov: on PreReq: /usr/bin/perl -License: GNU General Public License (GPL) - all versions +License: GNU General Public License (GPL) Source: http://mesh.dl.sourceforge.net/sourceforge/elilo/elilo-3.6.src.tgz Source1: elilo.pl Patch0: elilo-%{version}-asm.diff Patch1: elilo-%{version}-MAC.diff Patch2: elilo-%{version}-spelling.diff +Patch3: elilo-longer-commandline.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: gnu-efi @@ -44,6 +45,7 @@ Authors: %patch0 -p1 %patch1 -p1 %patch2 +%patch3 -p1 perl -pe 's/\@EDITION\@/%{version}-%{release}/' < %{SOURCE1} > elilo.pl && chmod 555 elilo.pl && touch -r %{SOURCE1} elilo.pl ! fgrep '%%{version}-%%{release}' elilo.pl @@ -77,6 +79,10 @@ echo "Please run /sbin/elilo!" #/usr/share/man/man8/* %changelog -n elilo +* Tue Feb 06 2007 - bwalle@suse.de +- elilo.efi + * increase command line size to 2048 (as in >= 2.6.20-rc6-mm1) + (#242702) * Fri Nov 10 2006 - schwab@suse.de - Fix spelling. * Thu Feb 02 2006 - rw@suse.de