Skip to content

Commit

Permalink
grubby: Make sure configure$BOOTLOADER variables are set correctly.
Browse files Browse the repository at this point in the history
When we've chosen a bootloader because it's default for a platform, and
we've already determined it's not overridden by the command line, set
the configure$BOOTLOADER variable to 1 so that our checks for which
bootloader are selected work correctly.

Resolves: rhbz#1340893

Signed-off-by: Peter Jones <[email protected]>
  • Loading branch information
vathpela committed Mar 12, 2018
1 parent 46cab02 commit 171aaa8
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions grubby.c
Original file line number Diff line number Diff line change
Expand Up @@ -5151,22 +5151,27 @@ int main(int argc, const char **argv)
if (!cfi) {
if (grub2FindConfig(&grub2ConfigType)) {
cfi = &grub2ConfigType;
configureGrub2 = 1;
if (envPath)
cfi->envFile = envPath;
} else
} else {
#ifdef __ia64__
cfi = &eliloConfigType;
#elif __powerpc__
configureLilo = 1;
#elif defined(__powerpc__)
cfi = &yabootConfigType;
#elif __sparc__
configureYaboot = 1;
#elif defined(__sparc__)
cfi = &siloConfigType;
#elif __s390__
configureSilo = 1;
#elif defined(__s390__) || defined(__s390x__)
cfi = &ziplConfigType;
#elif __s390x__
cfi = &ziplConfigtype;
configureZipl = 1;
#else
cfi = &grubConfigType;
configureGrub = 1;
#endif
}
}

if (!grubConfig) {
Expand Down

0 comments on commit 171aaa8

Please sign in to comment.