Bug 431717 - checkbootloader.py is relying upon comment tags within grub.conf.
Summary: checkbootloader.py is relying upon comment tags within grub.conf.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: up2date
Version: 4.8
Hardware: All
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Pradeep Kilambi
QA Contact: Jeff Browning
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-02-06 16:59 UTC by jim imgrund
Modified: 2018-01-05 15:52 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-05-18 20:13:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:0972 0 normal SHIPPED_LIVE up2date bug fix update 2009-05-18 13:42:03 UTC

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


Note You need to log in before you can comment on or make changes to this bug.