Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 4 product line. The current stable release is 4.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 431717

Summary: checkbootloader.py is relying upon comment tags within grub.conf.
Product: Red Hat Enterprise Linux 4 Reporter: jim imgrund <wa55up>
Component: up2dateAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED ERRATA QA Contact: Jeff Browning <jbrownin>
Severity: low Docs Contact:
Priority: low    
Version: 4.8CC: cperry, jhutar, sstover
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-05-18 20:13:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description jim imgrund 2008-02-06 16:59:20 UTC
Description of problem:
checkbootloader.py is relying upon comment tags within grub.conf.
If specific comment tag is removed, checkbootloader.py fails to recognize
bootloader as grub

if haveGrubConf:
.....
if line[0:6] == "#boot=":



Version-Release number of selected component (if applicable):
current version of up2date installed is: up2date-4.5.5-7.e14


How reproducible:


Steps to Reproduce:
1. edit grub.conf and remove all comments
2. execute /usr/share/rhn/up2date_client/checkbootloader.py
3. script is unable to recognize that grub is the bootloader
  
Actual results:


Expected results:
script should not rely upon comments within configs unless documented within the
config to not remove the comments.


Additional info:

Comment 5 Jeff Browning 2009-04-03 14:46:26 UTC
[root@dhcp77-161 up2date_client]# ./checkbootloader.py Found GRUB.

This was the result for grub.conf having comments and with all the comments deleted out. It returned GRUB as the boot loader in both cases.

Verified.

Comment 7 errata-xmlrpc 2009-05-18 20:13:50 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-0972.html