SHA256
1
0
forked from pool/syslinux

- handle case where a separate initrd config line is used instead of an

initrd= kernel option

OBS-URL: https://build.opensuse.org/package/show/system:install:head/syslinux?expand=0&rev=28
This commit is contained in:
Steffen Winterfeldt 2011-04-19 13:31:54 +00:00 committed by Git OBS Bridge
parent 54db7ac35f
commit 3dd6174e0d
4 changed files with 30 additions and 1 deletions

View File

@ -1,5 +1,5 @@
diff --git a/com32/gfxboot/gfxboot.c b/com32/gfxboot/gfxboot.c
index 3749920..00d168a 100644
index 9a39e79..35d180a 100644
--- a/com32/gfxboot/gfxboot.c
+++ b/com32/gfxboot/gfxboot.c
@@ -102,6 +102,8 @@ typedef struct __attribute__ ((packed)) {

View File

@ -0,0 +1,21 @@
diff --git a/com32/gfxboot/gfxboot.c b/com32/gfxboot/gfxboot.c
index 3749920..9a39e79 100644
--- a/com32/gfxboot/gfxboot.c
+++ b/com32/gfxboot/gfxboot.c
@@ -922,11 +922,15 @@ void boot_entry(menu_t *menu_ptr, char *arg)
*skip_nonspaces(s) = 0;
initrd_arg = s;
}
+ else if(initrd_arg) {
+ free(s0);
+ initrd_arg = s0 = strdup(initrd_arg);
+ }
if(initrd_arg) {
initrd = initramfs_init();
- while((t = strsep(&s, ","))) {
+ while((t = strsep(&initrd_arg, ","))) {
initrd_buf = load_one(t, &initrd_size);
if(!initrd_buf) {

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Apr 19 15:29:10 CEST 2011 - snwint@suse.de
- handle case where a separate initrd config line is used instead of an
initrd= kernel option
-------------------------------------------------------------------
Tue Apr 19 10:48:40 CEST 2011 - snwint@suse.de

View File

@ -33,6 +33,7 @@ Source1: isolinux-config
Source2: README.gfxboot
Patch0: %{name}-%{version}-iso9660.diff
Patch1: %{name}-%{version}-cwd.diff
Patch2: %{name}-%{version}-noinitrd.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -51,6 +52,7 @@ Authors:
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%build
cp %{SOURCE2} .