[PATCH 04/10] Fix grub detection on SuSE systems: config file order

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



SuSE sytems ship with a /etc/grub.conf that is not your regular grub
configuration file, but instead a sequence of grub commands. Example:

setup --stage2=/boot/grub/stage2 --force-lba (hd0,1) (hd0,1)
quit

Because of that, the parsing of the config fails. So, try to first
use the grub config file at /boot/grub/menu.lst.

Signed-off-by: Cleber Rosa <crosa@xxxxxxxxxx>
---
 grubby.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/grubby.c b/grubby.c
index cd57b4f..b9da724 100644
--- a/grubby.c
+++ b/grubby.c
@@ -164,8 +164,8 @@ struct keywordTypes grubKeywords[] = {
 
 const char *grubFindConfig(struct configFileInfo *cfi) {
     static const char *configFiles[] = {
-	"/etc/grub.conf",
 	"/boot/grub/menu.lst",
+	"/etc/grub.conf",
 	NULL
     };
     static int i = -1;
-- 
1.7.6.5

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux