Magellan Linux

Diff of /tags/grubby-8_30/grubby.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/grubby/grubby.c revision 2685 by niro, Wed Jul 16 10:38:09 2014 UTC tags/grubby-8_30/grubby.c revision 2691 by niro, Wed Jul 16 10:44:11 2014 UTC
# Line 60  int debug = 0; /* Currently just for tem Line 60  int debug = 0; /* Currently just for tem
60    
61  int isEfi = 0;  int isEfi = 0;
62    
63    #if defined(__arch64__)
64    #define isEfiOnly 1
65    #else
66    #define isEfiOnly 0
67    #endif
68    
69  char *saved_command_line = NULL;  char *saved_command_line = NULL;
70    
71  /* comments get lumped in with indention */  /* comments get lumped in with indention */
# Line 721  static enum lineType_e preferredLineType Line 727  static enum lineType_e preferredLineType
727      if (isEfi && cfi == &grub2ConfigType) {      if (isEfi && cfi == &grub2ConfigType) {
728   switch (type) {   switch (type) {
729   case LT_KERNEL:   case LT_KERNEL:
730      return LT_KERNEL_EFI;      return isEfiOnly ? LT_KERNEL : LT_KERNEL_EFI;
731   case LT_INITRD:   case LT_INITRD:
732      return LT_INITRD_EFI;      return isEfiOnly ? LT_INITRD : LT_INITRD_EFI;
733   default:   default:
734      return type;      return type;
735   }   }

Legend:
Removed from v.2685  
changed lines
  Added in v.2691