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 */ |
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 |
} |
} |