4360 |
char * rootspec; |
char * rootspec; |
4361 |
|
|
4362 |
if (config->defaultImage == -1) return 0; |
if (config->defaultImage == -1) return 0; |
4363 |
|
if (config->defaultImage == DEFAULT_SAVED_GRUB2 && |
4364 |
|
cfi->defaultIsSaved) |
4365 |
|
config->defaultImage = 0; |
4366 |
entry = findEntryByIndex(config, config->defaultImage); |
entry = findEntryByIndex(config, config->defaultImage); |
4367 |
if (!entry) return 0; |
if (!entry) return 0; |
4368 |
if (!suitableImage(entry, bootPrefix, 0, flags)) return 0; |
if (!suitableImage(entry, bootPrefix, 0, flags)) return 0; |
4381 |
struct singleEntry * entry; |
struct singleEntry * entry; |
4382 |
|
|
4383 |
if (config->defaultImage == -1) return 0; |
if (config->defaultImage == -1) return 0; |
4384 |
|
if (config->defaultImage == DEFAULT_SAVED_GRUB2 && |
4385 |
|
cfi->defaultIsSaved) |
4386 |
|
config->defaultImage = 0; |
4387 |
entry = findEntryByIndex(config, config->defaultImage); |
entry = findEntryByIndex(config, config->defaultImage); |
4388 |
if (!entry) return 0; |
if (!entry) return 0; |
4389 |
|
|
4406 |
|
|
4407 |
} else if (displayDefaultIndex) { |
} else if (displayDefaultIndex) { |
4408 |
if (config->defaultImage == -1) return 0; |
if (config->defaultImage == -1) return 0; |
4409 |
|
if (config->defaultImage == DEFAULT_SAVED_GRUB2 && |
4410 |
|
cfi->defaultIsSaved) |
4411 |
|
config->defaultImage = 0; |
4412 |
printf("%i\n", config->defaultImage); |
printf("%i\n", config->defaultImage); |
4413 |
return 0; |
return 0; |
4414 |
|
|