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:
parent
54db7ac35f
commit
3dd6174e0d
@ -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)) {
|
||||
|
21
syslinux-4.04-noinitrd.diff
Normal file
21
syslinux-4.04-noinitrd.diff
Normal 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) {
|
@ -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
|
||||
|
||||
|
@ -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} .
|
||||
|
Loading…
Reference in New Issue
Block a user