View previous topic :: View next topic |
Author |
Message |
simon_irl Guru
Joined: 07 Oct 2004 Posts: 403 Location: New Zealand
|
Posted: Wed Oct 12, 2005 5:18 am Post subject: iproute2 necessary now? |
|
|
excuse my ignorance of ip etc. (this is probably a very stupid question), but...why is iproute2 necessary on my system now, when it wasn't yesterday before i updated baselayout? with yesterday's baselayout, i could start net.eth0 with no problems, but today netmount failed and suggested i emerge iproute2 (which i did, and the network now works).
also...if iproute2 is now required, how come emerge -uD world didn't grab it? |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
simon_irl Guru
Joined: 07 Oct 2004 Posts: 403 Location: New Zealand
|
Posted: Wed Oct 12, 2005 6:13 am Post subject: |
|
|
ah...sorry...i searched the forums but forgot the bugs. thanks for the quick reply. |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
grimlog n00b
Joined: 17 Jun 2003 Posts: 3
|
Posted: Wed Oct 12, 2005 6:41 pm Post subject: |
|
|
UberLord wrote: | Too slow!
baselayout-1.12.0_pre9-r1 was just comitted to the tree which fixes this |
So, you are the guy responsible for this? May I ask, how you test things? You do tests, do you? I have the simplest setup in the world. Only eth0, one IP assigned, simple route to my router. Why on earth do you submit things to the tree, breaking really basic setups? I had no problems bringing eth0 up manually to search for the reason. I only wonder, how this mess could happen at all I am aware of the fact, that this happend to me, because I run ~x86, but imo you should take better care of what you are doing.
regards, Michael |
|
Back to top |
|
|
MerlinTheWizard Apprentice
Joined: 06 Apr 2003 Posts: 270
|
Posted: Wed Oct 12, 2005 9:03 pm Post subject: |
|
|
UberLord wrote: | Too slow!
baselayout-1.12.0_pre9-r1 was just comitted to the tree which fixes this |
It doesn't seem to fix it very well.
The net.eth0 script is fixed now, but iproute2 has been added as a requirement in net.lo!
Crap... |
|
Back to top |
|
|
j-m Retired Dev
Joined: 31 Oct 2004 Posts: 975
|
Posted: Wed Oct 12, 2005 9:23 pm Post subject: |
|
|
MerlinTheWizard wrote: |
It doesn't seem to fix it very well.
The net.eth0 script is fixed now, but iproute2 has been added as a requirement in net.lo!
Crap... |
Eh? /etc/init.d/net.eth0 is a symlink to /etc/init.d/net.lo |
|
Back to top |
|
|
MerlinTheWizard Apprentice
Joined: 06 Apr 2003 Posts: 270
|
Posted: Wed Oct 12, 2005 9:33 pm Post subject: |
|
|
j-m wrote: | MerlinTheWizard wrote: |
It doesn't seem to fix it very well.
The net.eth0 script is fixed now, but iproute2 has been added as a requirement in net.lo!
Crap... |
Eh? /etc/init.d/net.eth0 is a symlink to /etc/init.d/net.lo |
I didn't realize that, but you're right...
All I know is that I had fixed the script by hand yesterday. And today, a couple hours ago, I update baselayout with the "fixed" version, issue a "rc-update" and it wanted to update net.lo. When I inspected the differences before deciding to overwrite it or not with the new version, I noticed "iproute2" was back. That's all I know. So I discarded the updated version...
Don't know what's up with all that. |
|
Back to top |
|
|
simon_irl Guru
Joined: 07 Oct 2004 Posts: 403 Location: New Zealand
|
Posted: Wed Oct 12, 2005 9:34 pm Post subject: |
|
|
UberLord wrote: | Too slow! |
Heh...yeah...I was just going to say I've installed today's update to baselayout (and removed iproute2) and all is well...but I see you're probably aware of this, since you implemented it. Sorry I didn't see your request to test the patch in time.
Thanks for fixing it. |
|
Back to top |
|
|
Autie Guru
Joined: 25 Jul 2003 Posts: 309 Location: Ledegem - Belgium
|
Posted: Wed Oct 12, 2005 10:12 pm Post subject: |
|
|
just tried sys-apps/baselayout-1.12.0_pre9-r1, and it gave me problems with net.eth0
It wanted to start ifplugd for some reason, wich i don't use normally, and even with this, net.eth0 won't start.
so, i guess there's still some work on _________________ The capacity to learn is a gift; The ability to learn is a skill; The willingness to learn is a choice. |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
Posted: Wed Oct 12, 2005 10:44 pm Post subject: |
|
|
grimlog wrote: | So, you are the guy responsible for this? May I ask, how you test things? You do tests, do you? I have the simplest setup in the world. Only eth0, one IP assigned, simple route to my router. Why on earth do you submit things to the tree, breaking really basic setups? I had no problems bringing eth0 up manually to search for the reason. I only wonder, how this mess could happen at all I am aware of the fact, that this happend to me, because I run ~x86, but imo you should take better care of what you are doing.
regards, Michael |
OK - here's my defence. I added a new preferred module (netplugd) to the preferred module list. As I had all the modules emerged, I didn't see the error as the error was caused by me not updateing a variable specifying the number of perferred modules.
The current svn version has an improved fix where we calculate that number from a list instead of specifying it.
Or from another perspective, I do test my code a lot, but I cannot test for all configuartions as there is not enough time in the day.
Be happy that I fixed it within 20 minutes of being aware of it.
Thanks! _________________ Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
Posted: Wed Oct 12, 2005 10:48 pm Post subject: |
|
|
Autie wrote: | just tried sys-apps/baselayout-1.12.0_pre9-r1, and it gave me problems with net.eth0
It wanted to start ifplugd for some reason, wich i don't use normally, and even with this, net.eth0 won't start.
so, i guess there's still some work on |
We try and be as automatic as possible - 1.12 now handles ifplugd - the ifplugd in ~ARCH has a new init script that should be able to interact with baselayout and vice versa.
The only downside is that ifplugd now launches automatically - which is good as you installed it! To stop baselayout from launching ifplugd on an interface you can do this
Code: | modules_eth0=( "!ifplugd" ) |
_________________ Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool |
|
Back to top |
|
|
barum87 n00b
Joined: 28 Mar 2005 Posts: 62
|
Posted: Thu Oct 13, 2005 1:42 am Post subject: |
|
|
hmmm now my gentoo is totally offline. (Posting this on Windows)
Do I need to boot with my liveCD to get my internet connection back or is there a simpler solution? |
|
Back to top |
|
|
Decibels Veteran
Joined: 16 Aug 2002 Posts: 1630 Location: U.S.A.
|
Posted: Thu Oct 13, 2005 2:52 am Post subject: |
|
|
barum87 wrote: | hmmm now my gentoo is totally offline. (Posting this on Windows)
Do I need to boot with my liveCD to get my internet connection back or is there a simpler solution? |
**HOW TO FIX:(used patch info) Okay, don't need the LiveCD,.... just boot to Gentoo. Open /etc/init.d/net.lo with nano as root.
Code: | #nano -w /etc/init.d/net.lo
Then:
Change the line 183 from npref=3 to npref=4 |
Then not sure if this order is needed, but restarted net.lo, started syslog-ng, which started net.eth0.
Typing this in Gentoo online right now.
Title should be changed to: Don't use baselayout-1.12.0_pre9
UberLord : Glad you got it fixed fast. Thanks!! But that did suck when I rebooted and what the heck is going on???
Are we going through another Major change in how to set something up. Maybe it did this before, but don't recall it.
Code: | decibels david # /etc/init.d/net.eth0 restart
* Stopping syslog-ng ... [ ok ]
* Stopping eth0
* Bringing down eth0
* Shutting down eth0 ... [ ok ]
* Starting eth0
* You are using a depreciated configuration syntax for eth0
* You are advised to read /etc/conf.d/net.example and upgrade it accordingly
* Bringing up eth0
* 192.168.1.100 [ ok ]
* Adding routes
* default gw 192.168.1.1 ... [ ok ]
* Starting syslog-ng ... |
It is stopping syslog-ng just because the interface is restarting???? That just seems stupid. Don't see the reason!
Depreciated configuration syntax for eth0???? Why oh why? _________________ Support bacteria – they’re the only culture some people have.”
– Steven Wright |
|
Back to top |
|
|
barum87 n00b
Joined: 28 Mar 2005 Posts: 62
|
Posted: Thu Oct 13, 2005 4:54 am Post subject: |
|
|
thanks Decibels
I modified net.lo and simply ran "/etc/init.d/netmount start" and it worked : ) |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
Posted: Thu Oct 13, 2005 6:40 am Post subject: |
|
|
Decibels wrote: |
Title should be changed to: Don't use baselayout-1.12.0_pre9
|
Or if you do, ensure that you have iproute2, dhcpcd, wireless-tools and netplug installed - then it works
Quote: | UberLord : Glad you got it fixed fast. Thanks!! But that did suck when I rebooted and what the heck is going on???
Are we going through another Major change in how to set something up. |
No major changes since bselayout-1.12.0_pre2 really - just new modules in the form of ifplugd, netplugd and pppd. Adding a new system preferred module to the list in net.lo caused the error - stupid really.
Quote: | It is stopping syslog-ng just because the interface is restarting???? That just seems stupid. Don't see the reason! |
Yes, it's because the interface is restarting. The reason is because syslog-ng has a "need" dependany on "net". net.eth0 supplies your "net". You can change this in /etc/conf.d/rc - RC_STRICT_NET_CHECKING
Quote: | Depreciated configuration syntax for eth0???? Why oh why? |
It still works, there's just no guarantee it will work in versions in the future.
Why? Well, let's just say that there's around 70 lines of code just dealing with the old syntax as opposed to erm - around 10 lines with the new syntax.
I'd like to think that we can cut those 70 lines someday to make us leaner and meaner! _________________ Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool |
|
Back to top |
|
|
Karl-Franz Tux's lil' helper
Joined: 11 Jan 2005 Posts: 121 Location: /se/lund
|
Posted: Thu Oct 13, 2005 8:44 am Post subject: |
|
|
You could also start dhcpcd manually to get netaccess even though the scripts fail. That way you won't need to use Windows or liveCD:s. |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
Autie Guru
Joined: 25 Jul 2003 Posts: 309 Location: Ledegem - Belgium
|
Posted: Thu Oct 13, 2005 11:13 am Post subject: |
|
|
ok, i retried it, new baselayout. Used now parallel startup, installed netplug (didn't had it before), and added ifplugd to default runlevel.
Now latest baselayout works great, without any problem _________________ The capacity to learn is a gift; The ability to learn is a skill; The willingness to learn is a choice. |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
Autie Guru
Joined: 25 Jul 2003 Posts: 309 Location: Ledegem - Belgium
|
Posted: Thu Oct 13, 2005 11:22 am Post subject: |
|
|
oh, didn't notice that.
so, its safe to unmerge ifplugd, or only to remove it from runlevels? _________________ The capacity to learn is a gift; The ability to learn is a skill; The willingness to learn is a choice. |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
Autie Guru
Joined: 25 Jul 2003 Posts: 309 Location: Ledegem - Belgium
|
Posted: Thu Oct 13, 2005 3:05 pm Post subject: |
|
|
ok, great
thanks for the help _________________ The capacity to learn is a gift; The ability to learn is a skill; The willingness to learn is a choice. |
|
Back to top |
|
|
|