LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Problem with pppd after new udev update from -current (http://www.linuxquestions.org/questions/slackware-14/problem-with-pppd-after-new-udev-update-from-current-674849/)

niels.horn 10-07-2008 12:09 PM

Problem with pppd after new udev update from -current
 
After the -current update from last sunday that changed udev amongst other things, my GSM modem on my laptop stopped working.
"pppd call xxxxx" gives an error:
Code:

You need to create the /dev/ppp device node
Creating it with mknod resolves the problem until the next boot.

Checking around, I found out that the rule "50-udev-default.rules" doesn't exist anymore.
I have another system that has 12.1-stable and it still has this rule and as /dev/ppp after a normal boot.

Any idea what happened?

The workaround is creating the /dev/ppp device as root, as pppd indicates, but I guess this should be done by udev at boot time.

Should I simply copy the "50-udev-default.rules" rule from the 12.1-stable system to my -current system?

brodo 10-09-2008 09:16 AM

I have the same problem.

rworkman 10-09-2008 10:15 AM

The upstream udev rules have moved to /lib/udev/rules.d/ as of udev 128, so the missing files in /etc/udev/rules.d/ are not the issue.

The problem is likely that the ppp node has been removed from /lib/udev/devices in our package, as it should be created automatically when needed.

I still have the device node regardless here and my verizon evdo card works fine, so I'm not sure why it doesn't work elsewhere.

Anyway, it's being investigated - most likely, we'll return the ppp node to /lib/udev/devices/ in udev-130.

niels.horn 10-09-2008 11:52 AM

Quote:

Originally Posted by rworkman (Post 3305262)
The upstream udev rules have moved to /lib/udev/rules.d/ as of udev 128, so the missing files in /etc/udev/rules.d/ are not the issue.

ok, thanks for the explanation.
I have some custom udev-rules, I guess I have to move them to /lib/udev/rules.d as well?
They sure were not moved automatically ;)
I do honestly enjoy the surprises of using -current :D

I am at work now, using a windows desktop :( so I am unable to do any testing, but at night will investigate some more.
First thing I'll try is create the ppp node in /lib/udev/devices.

rworkman 10-09-2008 12:15 PM

Quote:

Originally Posted by niels.horn (Post 3305344)
ok, thanks for the explanation.
I have some custom udev-rules, I guess I have to move them to /lib/udev/rules.d as well?

No, they should stay. /lib/udev/rules.d/ is for rules that should never be edited by local system administrators (package-provided rules typically will go here, but not always). /etc/udev/rules.d/ is for rules that might need to be edited (and obviously custom rules go here).

Quote:

First thing I'll try is create the ppp node in /lib/udev/devices.
Simply copy the ppp node into /lib/udev/devices and it should "just work" thereafter.

niels.horn 10-09-2008 12:24 PM

Quote:

Originally Posted by rworkman (Post 3305365)
No, they should stay. /lib/udev/rules.d/ is for rules that should never be edited by local system administrators (package-provided rules typically will go here, but not always). /etc/udev/rules.d/ is for rules that might need to be edited (and obviously custom rules go here).

ok, got it!

I really need to study udev... It's fascinating to see what it can do. Any hints for some documentation? Not the basic stuff, I want to understand how it works, what calls what when and how etc...
I've written some very basic rules, but mostly based on things I found on the internet.

rworkman 10-09-2008 12:59 PM

There's a good user/admin doc in /usr/doc/udev-$VERSION/docs/writing_udev_rules/index.html

For api docs and such, I'm not aware of any - that's pretty much UTSL, I think. :-)

niels.horn 10-09-2008 07:33 PM

Solved!
 
Just checked on my -current system...
Creating the ppp "node" in /lib/udev/devices with:
Code:

mknod /lib/udev/devices/ppp c 108 0
(and a reboot) resolved the problem introduced with udev-128

Thanks for the help!

niels.horn 10-10-2008 07:30 AM

Just installed udev-130 from -current and all is fine again.
Now I will start studying udev in-depth (or even 'UTS' as Robby suggested ;) ) to understand what's happening 'under the hood'.


All times are GMT -5. The time now is 04:46 PM.