View previous topic :: View next topic |
Author |
Message |
markus42 n00b
Joined: 11 Jul 2006 Posts: 53
|
Posted: Sun Aug 13, 2006 2:33 am Post subject: baselayout & etc-update has hosed my networking [SOLVED] |
|
|
Hello all
I've done a silly thing. I recently did an emerge --update --deep world (which gave me a new baselayout) and followed that up with an etc-update.
Now my net.lo & net.eth0 won't start. Error is:
/etc/init.d/net.lo: line 34: /lib/rcscripts/net.modules.d/helpers.d/functions: no such file or directory
Same error for net.eth0
I don't have a net.modules.d directory in /lib/rcscripts !!
Looking at the forums, there seems to be some breakage associated with the new baselayout, but I can't find anyone with a similar error to me.
Has anyone got a clue as to how I can go about getting networking up and running?
Thanks in advance
Last edited by markus42 on Mon Aug 14, 2006 9:02 am; edited 1 time in total |
|
Back to top |
|
|
Chris W l33t
Joined: 25 Jun 2002 Posts: 972 Location: Brisbane, Australia
|
Posted: Sun Aug 13, 2006 4:23 am Post subject: |
|
|
Looks like a missed etc-update on net.lo. My baselayout-1.12.4-r2 net.lo looks like this: Code: | 27 # Define where our modules are
28 MODULES_DIR="${svclib}/net"
29
30 # Make some wrappers to fudge after/before/need/use depend flags.
31 # These are callbacks so MODULE will be set.
32 after() {
33 eval "${MODULE}_after() { echo \"$*\"; }"
34 }
35 before() {
36 eval "${MODULE}_before() { echo \"$*\"; }"
37 }
38 need() {
39 eval "${MODULE}_need() { echo \"$*\"; }" | Line 28 says the modules are in /lib/rcscripts/net.
Run etc-update. _________________ Cheers,
Chris W
"Common sense: The collection of prejudices acquired by age 18." -- Einstein |
|
Back to top |
|
|
dsegel Tux's lil' helper
Joined: 31 Jan 2003 Posts: 127
|
Posted: Sun Aug 13, 2006 3:15 pm Post subject: |
|
|
It's not an etc-update kind of update; when you emerge baselayout there's a message at the end telling you to create symlinks of the existing net.eth* scripts to net.lo. If you don't do that then you'll be running the wrong init script at boot time, and all kinds of things won't work. |
|
Back to top |
|
|
Chris W l33t
Joined: 25 Jun 2002 Posts: 972 Location: Brisbane, Australia
|
Posted: Sun Aug 13, 2006 10:04 pm Post subject: |
|
|
I opted for etc-update because net.lo is not working and it is the file delivered with baselayout. The point regarding links to net.lo for other interfaces is quite valid.
How are you going with this markus42? _________________ Cheers,
Chris W
"Common sense: The collection of prejudices acquired by age 18." -- Einstein |
|
Back to top |
|
|
markus42 n00b
Joined: 11 Jul 2006 Posts: 53
|
Posted: Mon Aug 14, 2006 12:05 am Post subject: |
|
|
Thank you guys so much for your messages. I'm at work now and won't be able to do anything for the next 12 hours.
I'll give your suggestions a try. I did an etc-update straight after the emerge --update --deep world so I'll give the symlink suggestion a try.
Just to recap, you are saying that I should delete my net.ethx script files and replace them with symlinks to net.lo?
But net.lo doesn't work either!
Also, I seem to recall from my very quick peek into these scripts, that they were all the same. Perhaps the net.ethx files are already symlinked to net.lo? Anyway, I'll check when I get a moment tonight.
Thanks again |
|
Back to top |
|
|
markus42 n00b
Joined: 11 Jul 2006 Posts: 53
|
Posted: Mon Aug 14, 2006 1:28 am Post subject: |
|
|
OK. I have a Gentoo Virtual Machine running at work. It's on Baselayout 1.11.15-r3 . It does have a
/lib/rcscripts/net.modules.d/helpers.d/functions file. It looks like my hosed PC has the prior version of the net.lo script. I KNOW I did an etc-update. I remember taking the -5 option to accept all changes.
Let's update my VM version of Gentoo and see what happens.
1. Installs baselayout-1.12.4-r3 (not baselayout-1.12.4-r2)
2. etc-update updates net.lo and a host of other files.
3. Boots with networking OK!!
I'll emerge baselayout-1.12.4-r3 (and do an etc-update) and see how I get on.
Cheers! |
|
Back to top |
|
|
markus42 n00b
Joined: 11 Jul 2006 Posts: 53
|
Posted: Mon Aug 14, 2006 9:01 am Post subject: |
|
|
I can't emerge the latest baselayout can I? I don't have any network!
Luckily I had the presence of mind to copy the updated config files from the Gentoo VM to a CD. I overwrote the files on my hosed PC and presto - everything is working OK now.
Thanks for your help! |
|
Back to top |
|
|
billium Apprentice
Joined: 22 Mar 2003 Posts: 185
|
Posted: Tue Aug 15, 2006 9:24 am Post subject: |
|
|
This happened to me also.
I did the usual emerge --sync emerge -uv system but ran out of time and forgot about etc-update. Switching on later, I got the problem with net.lo. It all corrected itself after etc-update.
Thanks Chris W
Billy |
|
Back to top |
|
|
ofeet n00b
Joined: 19 Jul 2004 Posts: 61 Location: Utah
|
Posted: Thu Aug 17, 2006 8:14 pm Post subject: sweet |
|
|
Hey thanks for this thread guys, I would have been pooched...
seems weird they moved all that stuff, but everything worked after an etc-update _________________ I have nothing witty or brilliant to put here... /tear |
|
Back to top |
|
|
kallamej Administrator
Joined: 27 Jun 2003 Posts: 4975 Location: Gothenburg, Sweden
|
Posted: Tue Aug 22, 2006 9:12 am Post subject: |
|
|
Moved from Networking & Security to Duplicate Threads in favour of Missing /lib/rcsripts/net.modules.d [SOLVED]. _________________ Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.libera.chat |
|
Back to top |
|
|
|