return;
if (streq(name, "menuentry")) {
- char *sep;
-
/* complete any existing option... */
if (state->opt)
grub2_finish(conf);
opt = discover_boot_option_create(conf->dc, conf->dc->device);
opt->option->boot_args = talloc_strdup(opt->option, "");
- sep = strchr(value, '\'');
-
- if (sep)
- *sep = 0;
+ value = strtok(value, "\'{\"");
opt->option->id = talloc_asprintf(opt->option,
"%s#%s", dev->id, value);
return;
}
- if (streq(name, "linux")) {
+ if (streq(name, "linux") || streq(name, "linux16")) {
char *sep;
sep = strchr(value, ' ');
return;
uuid++;
- pb_log("%s: uuid %s\n", __func__, uuid);
if (state->root)
talloc_unlink(state, state->root);
static const char *grub2_known_names[] = {
"menuentry",
"linux",
+ "linux16",
"initrd",
"search",
NULL