582 |
{ "initrd", LT_INITRD, ' ', ',' }, |
{ "initrd", LT_INITRD, ' ', ',' }, |
583 |
{ "append", LT_KERNELARGS, ' ' }, |
{ "append", LT_KERNELARGS, ' ' }, |
584 |
{ "prompt", LT_UNKNOWN, ' ' }, |
{ "prompt", LT_UNKNOWN, ' ' }, |
585 |
|
{ "fdt", LT_DEVTREE, ' ' }, |
586 |
|
{ "fdtdir", LT_DEVTREE, ' ' }, |
587 |
{ NULL, 0, 0 }, |
{ NULL, 0, 0 }, |
588 |
}; |
}; |
589 |
int useextlinuxmenu; |
int useextlinuxmenu; |
829 |
|
|
830 |
/* extract the title from within brackets (for zipl) */ |
/* extract the title from within brackets (for zipl) */ |
831 |
static char * extractTitle(struct singleLine * line) { |
static char * extractTitle(struct singleLine * line) { |
832 |
/* bracketed title... let's extract it (leaks a byte) */ |
/* bracketed title... let's extract it */ |
833 |
char * title = NULL; |
char * title = NULL; |
834 |
if (line->type == LT_TITLE) { |
if (line->type == LT_TITLE) { |
835 |
title = strdup(line->elements[0].item); |
title = strdup(line->elements[0].item + 1); |
|
title++; |
|
836 |
*(title + strlen(title) - 1) = '\0'; |
*(title + strlen(title) - 1) = '\0'; |
837 |
} else if (line->type == LT_MENUENTRY) |
} else if (line->type == LT_MENUENTRY) |
838 |
title = strdup(line->elements[1].item); |
title = strdup(line->elements[1].item); |
4270 |
_("display the title of the default kernel") }, |
_("display the title of the default kernel") }, |
4271 |
{ "devtree", 0, POPT_ARG_STRING, &newDevTreePath, 0, |
{ "devtree", 0, POPT_ARG_STRING, &newDevTreePath, 0, |
4272 |
_("device tree file for new stanza"), _("dtb-path") }, |
_("device tree file for new stanza"), _("dtb-path") }, |
4273 |
|
{ "devtreedir", 0, POPT_ARG_STRING, &newDevTreePath, 0, |
4274 |
|
_("device tree directory for new stanza"), _("dtb-path") }, |
4275 |
{ "elilo", 0, POPT_ARG_NONE, &configureELilo, 0, |
{ "elilo", 0, POPT_ARG_NONE, &configureELilo, 0, |
4276 |
_("configure elilo bootloader") }, |
_("configure elilo bootloader") }, |
4277 |
{ "efi", 0, POPT_ARG_NONE, &isEfi, 0, |
{ "efi", 0, POPT_ARG_NONE, &isEfi, 0, |