Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 188962 - baselayout-2.0.0_rc2-r1 /etc/conf.d/net config_eth0="dhcp" spacing
Summary: baselayout-2.0.0_rc2-r1 /etc/conf.d/net config_eth0="dhcp" spacing
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-15 09:00 UTC by Duncan
Modified: 2007-08-15 12:27 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Duncan 2007-08-15 09:00:09 UTC
I upgraded to baselayout2 today.  There was one minor change in the conf.d/net file behavior that doesn't seem to be documented yet so caught me off guard.

config_eth0= "dhcp"

used to work.  Now it doesn't.  I had to change it to:

config_eth0="dhcp"

Notice the difference?  The former version has a space after the equal sign.  That worked with baselayout-1.13.0-alpha-whatever, which is what I had been running for some time (and probably older versions as well, tho IDR whether I had to edit the net config for the 1.13.x series or not), but the new parsing in baselayout2 didn't like it.

The VARIABLES note at the top of conf.d/net.example explains the array thing and touches on spacing and quoting, but doesn't mention spacing between the equal sign and the opening quote.  Thus, I'm not sure whether the above behavior is as intended and thus simply a bug in documentation, or whether it's a bug in implementation, but either way, fixing it before unmasking will likely prevent a flood of bug dups.  Note that I didn't check whether a space before the equal sign had any effect on behavior, but might as well verify that and make adjustments if necessary there as well, while you are at it.

FWIW, I was initially rather stumped, as the error I got mentioned that line, saying dhcp couldn't be executed as it wasn't found (however the error goes), so I knew it was that line, but the sample uses what looked to me like the exact same line three times in the file.  Only after looking at it for awhile did I realize I had a space in my error producing version that wasn't in the sample versions, and sure enough, removing it and testing had the desired result.  I'm sure there'll be many many more people having the problem if it's not fixed/documented by unmasking.
Comment 1 Roy Marples (RETIRED) gentoo-dev 2007-08-15 12:27:22 UTC
config_eth0= "dhcp"

That just won't work regardless of baselayout version as it's invalid shell syntax.

HINT: Just type it on the console to see