udevstart problem
Hello!
I am trying to use udev with an empty /dev.
It works more or less good, when mounting /sys and then runnig udevstart. But udevstart does not produce /dev/null nor /dev/urandom.
Is that a bug or is it wanted that I create/mknod them myself?
Nico
Please CC me, I am not subscribed.
Signature · 3 lines
Keep it simple & stupid, use what's available. Please use pgp encryption: 8D0E 27A4 is my id. http://nico.schotteli.us | http://linux.schottelius.org
Quoted 3 lines · Nico Schottelius
It works more or less good, when mounting /sys and then runnig udevstart. But udevstart does not produce
/dev/nullnor/dev/urandom.
You need a newer kernel.
Signature · 2 lines
ciao, | Marco | [9035 mi4bOGc8z79Cs]
Marco d'Itri [Sun, Nov 07, 2004 at 03:37:12PM +0100]:
Quoted 6 lines · Nico Schottelius
Quoted 4 lines
It works more or less good, when mounting /sys and then runnig udevstart. But udevstart does not produce
/dev/nullnor/dev/urandom.You need a newer kernel.
Why is this kernel dependend?
Newer than 2.6.9? This means I have to wait for 2.6.10?
Nico
Signature · 3 lines
Keep it simple & stupid, use what's available. Please use pgp encryption: 8D0E 27A4 is my id. http://nico.schotteli.us | http://linux.schottelius.org
Quoted 7 lines · Nico Schottelius
Quoted 4 lines
Quoted 3 lines
It works more or less good, when mounting /sys and then runnig udevstart. But udevstart does not produce
/dev/nullnor/dev/urandom.You need a newer kernel.
Why is this kernel dependend?
Newer than 2.6.9? This means I have to wait for 2.6.10?
Because older kernels did not have sysfs support for these devices, but 2.6.9 is definitely OK. So I have no clue about your problem, sorry.
Signature · 2 lines
ciao, | Marco | [9066 apHpcnMSrj58Y]
Quoted 9 lines · Nico Schottelius
Hello!
I am trying to use udev with an empty /dev.
It works more or less good, when mounting /sys and then runnig udevstart. But udevstart does not produce
/dev/nullnor/dev/urandom.Is that a bug or is it wanted that I create/mknod them myself?
It should be created by udevstart. What does:
[kay@pim ~]$ udevtest /class/mem/null
version 043
looking at '/class/mem/null'
parse error /etc/udev/rules.d/50-udev.rules, line 76:31, rule skipped
configured rule in '/etc/udev/rules.d/50-udev.rules' at line 49 applied, added symlink 'XOR' creating device node '/dev/null', major = '1', minor = '3', mode = '020666', uid = '0', gid = '0'
print for you?
Kay
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id065&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Kay Sievers [Mon, Nov 08, 2004 at 08:36:53PM +0100]:
Quoted 9 lines · Nico Schottelius
Quoted 8 lines
Hello!
I am trying to use udev with an empty /dev.
It works more or less good, when mounting /sys and then runnig udevstart. But udevstart does not produce
/dev/nullnor/dev/urandom.
Quoted 5 lines
Quoted 1 line
Is that a bug or is it wanted that I create/mknod them myself?
It should be created by udevstart. What does:
[...]
print for you?
No:
[22:10] scice:/etc/minit# /usr/packages/udev-040/usr/bin/udevtest /sys/class/mem/null/ version 040
looking at '/sys/class/mem/null/'
zsh: segmentation fault /usr/packages/udev-040/usr/bin/udevtest /sys/class/mem/null/
As I see you are using 043, I'll retry that...
[22:23] scice:~/udev-043# /usr/bin/udevtest /sys/class/mem/null/ version 043
looking at '/sys/class/mem/null/' sysfs_open_class_device_path failed
Oops found my mistake:
[22:23] scice:~/udev-043# /usr/bin/udevtest /class/mem/null/
version 043
looking at '/class/mem/null/'
creating device node '/udev/null', major = '1', minor = '3', mode = '020600', uid = '0', gid = '0'
Is it possible to strip a leading '/sys', if specified? Would make life for me (user/tester) easier.
I'll try to reboot and look if /dev/null und /dev/urandom than exist.
Nico
Signature · 3 lines
Keep it simple & stupid, use what's available. Please use pgp encryption: 8D0E 27A4 is my id. http://nico.schotteli.us | http://linux.schottelius.org
Nico Schottelius [Mon, Nov 08, 2004 at 10:26:45PM +0100]:
Quoted 2 lines
[...]
I'll try to reboot and look if/dev/nullund/dev/urandomthan exist.
Yes, everything's there. Working fine!
But there is another problem:
I want to run udevstart at system startup. I am using minit[0,1], which starts programs with links:
ln -s /sbin/udevstart run
When calling run, it looks like udevstart (which is a link to udev) looks at argv[0].
Can we change that and make two programs of it or add a parameter "-s" for start to udev?
Nico
Signature · 3 lines
Keep it simple & stupid, use what's available. Please use pgp encryption: 8D0E 27A4 is my id. http://nico.schotteli.us | http://linux.schottelius.org
Quoted 4 lines · Nico Schottelius
Nico Schottelius [Mon, Nov 08, 2004 at 10:26:45PM +0100]:
Quoted 2 lines
[...]
I'll try to reboot and look if/dev/nullund/dev/urandomthan exist.
Quoted 8 lines
Yes, everything's there. Working fine!
But there is another problem:
I want to run udevstart at system startup. I am using minit[0,1], which starts programs with links:
ln -s
/sbin/udevstartrun
Yes, but minit uses the the link target and passes it as argv[0]. So this should work. If not, just wrap it in a two line shell script that does an exec udevstart.
Quoted 5 lines
When calling run, it looks like udevstart (which is a link to udev) looks at argv[0].
Can we change that and make two programs of it or add a parameter "-s" for start to udev?
I will add a parameter. I miss that too, cause you need to create the link in the source tree just to test udevstart.
Thanks,
Kay
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id065&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Kay Sievers [Wed, Nov 10, 2004 at 01:06:26AM +0100]:
Quoted 11 lines · Nico Schottelius
Quoted 6 lines
Nico Schottelius [Mon, Nov 08, 2004 at 10:26:45PM +0100]:
[...]
I want to run udevstart at system startup. I am using minit[0,1], which starts programs with links:ln -s
/sbin/udevstartrunYes, but minit uses the the link target and passes it as argv[0]. So this should work. If not, just wrap it in a two line shell script that does an exec udevstart.
Didn't know that minit does that, will have to look into the source to be able to verify that. The second solution is the one I am currently using, but which is imho dirty, as it starts an additional shell (which will effectively slow down the boot process some mili-seconds).
Quoted 8 lines
Quoted 5 lines
When calling run, it looks like udevstart (which is a link to udev) looks at argv[0].
Can we change that and make two programs of it or add a parameter "-s" for start to udev?
I will add a parameter. I miss that too, cause you need to create the link in the source tree just to test udevstart.
That sounds very good! As soon as you realesed that,
I'll try it (I see I should subscribe to the ML in the near future).
Just found another interesting thing: The default permissions file is very small, not covering null, zero, pty* and so on. Is there a place you maintain
bigger samples or are you interested in having, which can be used for productive systems?
Nico
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id065&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 5 lines · Nico Schottelius
Just found another interesting thing: The default permissions file is very small, not covering null, zero, pty* and so on. Is there a place you maintain
bigger samples or are you interested in having, which can be used for productive systems?
In the source tarball there are example permissions files provided by major distributions, so I suggest I look at the udev package for your distribution of choice.
Signature · 13 lines
ciao, | Marco | [9111 scv.xQcF/6tf.] ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_idU88&alloc_id065&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel