From c53f30a204d710b776c22535fa53818043f6e2f1 Mon Sep 17 00:00:00 2001 From: Steffen Winterfeldt Date: Tue, 19 Apr 2011 15:27:26 +0200 Subject: [PATCH] gfxboot: handle INITRD config line Handle case where there is no initrd= option but a separate initrd config line. Signed-off-by: Sebastian Herbszt --- com32/gfxboot/gfxboot.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) { -- 2.7.4