1773 |
|
|
1774 |
/* check all the lines matching checkType */ |
/* check all the lines matching checkType */ |
1775 |
for (line = entry->lines; line; line = line->next) { |
for (line = entry->lines; line; line = line->next) { |
1776 |
line = getLineByType(entry->multiboot && checkType == LT_KERNEL |
enum lineType_e ct = checkType; |
1777 |
? LT_KERNEL|LT_KERNEL_EFI|LT_MBMODULE|LT_HYPER |
if (entry->multiboot && checkType == LT_KERNEL) |
1778 |
: checkType, line); |
ct = LT_KERNEL|LT_KERNEL_EFI|LT_MBMODULE|LT_HYPER; |
1779 |
if (!line) break; /* not found in this entry */ |
else if (checkType & LT_KERNEL) |
1780 |
|
ct = checkType | LT_KERNEL_EFI; |
1781 |
|
line = getLineByType(ct, line); |
1782 |
|
if (!line) |
1783 |
|
break; /* not found in this entry */ |
1784 |
|
|
1785 |
if (line && line->type != LT_MENUENTRY && |
if (line && line->type != LT_MENUENTRY && |
1786 |
line->numElements >= 2) { |
line->numElements >= 2) { |