waiting for udevstart
udevstart is called on startup to populate /dev.
However, all it does is generate udev events - which means that when udevstart exits, /dev isn't necessarily populated at all.
You could do a hack like:
- generate a list of all the events you're going to create
- write a dev.d script that waits for the last one
- while (1) sleep(500);
- have that dev.d script kill udevstart
But that's gross.
Any better suggestions?
Bill
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 5 lines · Bill Nottingham
udevstart is called on startup to populate /dev.
However, all it does is generate udev events - which means that when udevstart exits, /dev isn't necessarily populated at all.
Never mind. Different error going on here.
Bill
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 5 lines · Bill Nottingham
udevstart is called on startup to populate /dev.
However, all it does is generate udev events - which means that when udevstart exits, /dev isn't necessarily populated at all.
Are you sure? In looking at the most recent code (remember, udevstart is a symlink to udev now) I don't see any exec or fork() path when udevstart is running. But I might be missing something...
Quoted 8 lines
You could do a hack like:
- generate a list of all the events you're going to create
- write a dev.d script that waits for the last one
- while (1) sleep(500);
- have that dev.d script kill udevstartBut that's gross.
That is.
Quoted 1 line
Any better suggestions?
Make udevstart not return until it is done. I think that's what it does today. But if not, I'll gladly accept patches to make it do so.
thanks,
greg k-h
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 2 lines · Greg KH
Make udevstart not return until it is done. I think that's what it does today. But if not, I'll gladly accept patches to make it do so.
Debian bug #250598 says it does not, but it may be old:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug%0598
Signature · 13 lines
ciao, | Marco | [8582 giYtO/DRUAPco] ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 10 lines · Greg KH
Quoted 5 lines · Bill Nottingham
udevstart is called on startup to populate /dev.
However, all it does is generate udev events - which means that when udevstart exits, /dev isn't necessarily populated at all.
Are you sure? In looking at the most recent code (remember, udevstart is a symlink to udev now) I don't see any exec or
fork()path when udevstart is running. But I might be missing something...
Right, we just prepare the list of devices to work on, and walk over it without any external call. Just one binary. During that walk the dev.d/ scripts will be called.
Quoted 7 lines
Quoted 7 lines
You could do a hack like:
- generate a list of all the events you're going to create
- write a dev.d script that waits for the last one
- while (1) sleep(500);
- have that dev.d script kill udevstart
Quoted 8 lines
Quoted 1 line
But that's gross.
That is.
Quoted 1 line
Any better suggestions?
Make udevstart not return until it is done. I think that's what it does today. But if not, I'll gladly accept patches to make it do so.
No, it will not return until the last node is created!
Kay
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 6 lines · Marco d'Itri
Quoted 2 lines · Greg KH
Make udevstart not return until it is done. I think that's what it does today. But if not, I'll gladly accept patches to make it do so.
Debian bug #250598 says it does not, but it may be old:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug%0598
If Debian really runs udevstart and waits until it's finished this should not happen? Are you sure, that udevstart (the binary and not the old shellscript) is run as early as possible and not in the background?
Kay
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 6 lines · Kay Sievers
Quoted 2 lines
Debian bug #250598 says it does not, but it may be old:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug%0598If Debian really runs udevstart and waits until it's finished this should not happen? Are you sure, that udevstart (the binary and not the old shellscript) is run as early as possible and not in the background?
Yes, I am quite sure because I wrote the script. udevstart runs in foreground and the only init script running before udev is the one which mounts /sys and /proc.
/etc/rcS.d/:
README S20modutils@ S37hotplug@ S48console-screen.sh@ S02mountvirtfs@ S25raid2@ S38pppd-dns@ S50hwclock.sh@ S04udev@ S27evms@ S39atm@ S55bootmisc.sh@ S05bootlogd@ S30checkfs.sh@ S39ifupdown@ S55urandom@ S05keymap.sh@ S30procps.sh@ S40hostname.sh@ S70screen-cleanup@ S07hdparm@ S35mountall.sh@ S40network@ S70xfree86-common@ S10checkroot.sh@ S36discover@ S40networking@ S75sudo@ S18hwclockfirst.sh@ S36lm-sensors@ S43portmap@ S20module-init-tools@ S36mountvirtfs@ S45mountnfs.sh@
Signature · 13 lines
ciao, | Marco | [8584 lu4i9vBNCcik.] ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 14 lines · Marco d'Itri
Quoted 6 lines · Kay Sievers
Quoted 2 lines
Debian bug #250598 says it does not, but it may be old:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug%0598If Debian really runs udevstart and waits until it's finished this should not happen? Are you sure, that udevstart (the binary and not the old shellscript) is run as early as possible and not in the background?
Yes, I am quite sure because I wrote the script. udevstart runs in foreground and the only init script running before udev is the one which mounts /sys and /proc.
/etc/rcS.d/:
Quoted 9 lines
README S20modutils@ S37hotplug@ S48console-screen.sh@ S02mountvirtfs@ S25raid2@ S38pppd-dns@ S50hwclock.sh@ S04udev@ S27evms@ S39atm@ S55bootmisc.sh@ S05bootlogd@ S30checkfs.sh@ S39ifupdown@ S55urandom@ S05keymap.sh@ S30procps.sh@ S40hostname.sh@ S70screen-cleanup@ S07hdparm@ S35mountall.sh@ S40network@ S70xfree86-common@ S10checkroot.sh@ S36discover@ S40networking@ S75sudo@ S18hwclockfirst.sh@ S36lm-sensors@ S43portmap@ S20module-init-tools@ S36mountvirtfs@ S45mountnfs.sh@
Looks good. I just looked into the last udev-deb and this error should not happen.
The bug report is from May and the recent udevstart is from August, so I think this is long solved, or do you get any recent reports like this?
Kay
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 2 lines · Kay Sievers
The bug report is from May and the recent udevstart is from August, so I think this is long solved, or do you get any recent reports like this?
I haven't got anything recent, but this may be because there is this bug open. I will close it and see what happens.
Signature · 13 lines
ciao, | Marco | [8585 denKuaohgKTzs] ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 4 lines · Kay Sievers
Quoted 2 lines
Make udevstart not return until it is done. I think that's what it does today. But if not, I'll gladly accept patches to make it do so.
No, it will not return until the last node is created!
Correct; the problem being seen was:
a) run udevstart
b) load some modules
c) do stuff
The problem was the devices created by b), not a).
I have a strange feeling that this is going to uncover lots of problems in various places. :/
Bill
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel