Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 92236 - livecd-tools 1.0.20: Bug in autoconfig init.d script, if dhcp is disabled
Summary: livecd-tools 1.0.20: Bug in autoconfig init.d script, if dhcp is disabled
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo LiveCD Package Maintainers
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2005-05-11 05:29 UTC by Paul Smith
Modified: 2005-07-15 07:37 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 Paul Smith 2005-05-11 05:29:06 UTC
If dhcp is disabled, the following sed script is invoked by init.d/autoconfig:

               sed -i -e '/^ifconfig_eth/ s//^#/' \
                       -e '/^iface_eth/ s//^#/' \
                        /etc/conf.d/net

This is wrong, and leads to lines like this in /etc/conf.d/net:

  ^#0="dhcp"
  ^#1="dhcp"

etc. which causes syntax errors.  The right script would be:

               sed -i -e '/^ifconfig_eth/ s/^/#/' \
                       -e '/^iface_eth/ s/^/#/' \
                        /etc/conf.d/net

Reproducible: Always
Steps to Reproduce:
1. create a livecd
2. start it with nodhcp

Actual Results:  
See that the network doesn't come up properly and the /etc/conf.d/net file is
corrupted

Expected Results:  
Commented out those lines but not given syntax errors.
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2005-05-11 07:27:44 UTC
I've fixed this in CVS already, and it will be in the next livecd-tools.  As a temporary workaround, you can add a proper sed into your fsscript to "fix" autoconfig, as I am waiting on fixing a couple other bugs before releasing livecd-tools 1.0.21
Comment 2 Paul Smith 2005-05-11 07:44:28 UTC
OK, I can tweak it.  What I actually want to do is figure out how to turn off the "nodhcp" option altogether: I don't want any of this tweaking to happen in the first place :-).

Cheers!
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2005-05-31 10:43:19 UTC
Well, autoconfig is nothing but tweaking and poking around...

You can always livecd/rcdel autoconfig in yoru spec file and livecd/rcadd the
specific parts of it you want enabled... nobody said you had to make your CD the
same way that we do... ;]
Comment 4 Chris Gianelloni (RETIRED) gentoo-dev 2005-07-15 07:37:14 UTC
I've had a new livecd-tools out for a little while now, so I'm going to mark this as FIXED.