Bug 579834 - RHEL5 PPC - long append='...' causes yaboot to reject entire yaboot.conf (MAX_TOKEN too small)
Summary: RHEL5 PPC - long append='...' causes yaboot to reject entire yaboot.conf (MAX...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: yaboot
Version: 5.4
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Jiri Skala
QA Contact: Martin Banas
URL:
Whiteboard:
Depends On:
Blocks: 711001
TreeView+ depends on / blocked
 
Reported: 2010-04-06 17:00 UTC by Jon Thomas
Modified: 2014-11-09 22:32 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 711001 (view as bug list)
Environment:
Last Closed: 2011-07-21 07:06:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0993 0 normal SHIPPED_LIVE yaboot bug fix update 2011-07-20 15:44:57 UTC

Description Jon Thomas 2010-04-06 17:00:57 UTC
A long append string in yaboot.conf leads to error during install.


example of a a long append:

     append="ksdevice=eth0 insmod=ibmveth mpath ks=http://myserver.myserverdomain.com/kickstart/ks/org/1xc0d08123b74dbc284b4333afc2dc532f/view_label/systemp_adam ip=10.25.193.74 netmask=255.255.255.0 gateway=10.25.193.1 dns=10.20.1.23 hostname=systemp-test.myserverdomain.com noipv6 latecfload"


The error is:

Quoted string is too long near line 8 in file /etc/yaboot.conf

this is a rhel5 dup of fedora bug https://bugzilla.redhat.com/show_bug.cgi?id=471321

fixed with:


diff -up yaboot-1.3.13/second/cfg.c.orig yaboot-1.3.13/second/cfg.c
--- yaboot-1.3.13/second/cfg.c.orig	2009-12-02 09:46:58.000000000 -0500
+++ yaboot-1.3.13/second/cfg.c	2009-12-02 09:47:31.000000000 -0500
@@ -39,7 +39,7 @@ typedef struct {
      void *data;
 } CONFIG;
 
-#define MAX_TOKEN 200
+#define MAX_TOKEN 511
 #define MAX_VAR_NAME MAX_TOKEN
 #define EOF -1

Comment 2 RHEL Program Management 2010-08-09 19:25:48 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 8 errata-xmlrpc 2011-07-21 07:06:01 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-2011-0993.html


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