Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian dpkg (http://www.linux-archive.org/debian-dpkg/)
-   -   RFC: Fix grub detection on SuSE systems: config file order (http://www.linux-archive.org/debian-dpkg/627034-rfc-fix-grub-detection-suse-systems-config-file-order.html)

Cleber Rosa 01-30-2012 07:41 PM

RFC: Fix grub detection on SuSE systems: config file order
 
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@redhat.com>
---
grubby.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/grubby.c b/grubby.c
index c664387..39d7846 100644
--- a/grubby.c
+++ b/grubby.c
@@ -174,8 +174,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@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


All times are GMT. The time now is 05:31 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.