X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=devices%2Fkboot-parser.c;h=ef1f247b8b39ffd5ce879220d314933ca7ebf5d2;hp=27f302565d885e94373a825acd47c4c27e59e895;hb=0baa987696e787f5136f2296295206d99c238f19;hpb=0ad5daa6572ad340244998f8f2243905d8f3974f diff --git a/devices/kboot-parser.c b/devices/kboot-parser.c index 27f3025..ef1f247 100644 --- a/devices/kboot-parser.c +++ b/devices/kboot-parser.c @@ -10,7 +10,7 @@ #include #include -#include "udev-helper.h" +#include "parser.h" #include "params.h" #define buf_size 1024 @@ -121,6 +121,7 @@ static int parse_option(struct boot_option *opt, char *config) root = value; } else { + strcat(cmdline, " "); *(value - 1) = '='; strcat(cmdline, name); } @@ -149,7 +150,7 @@ static int parse_option(struct boot_option *opt, char *config) printf("kboot cmdline: %s", cmdline); opt->boot_args = cmdline; - asprintf(&opt->description, "%s %s", opt->boot_image_file, cmdline); + asprintf(&opt->description, "%s %s", config, cmdline); return 1; }