jcnelson / vdev

A device-file manager for *nix
GNU General Public License v3.0
101 stars 13 forks source link

no input devices with devtmpfs #97

Open suedi opened 8 years ago

suedi commented 8 years ago

I have a working system and add only mount -t devtmpfs devtmpfs /dev

I boot and everything seems fine in /dev ( I will check this thouroghly )

However when I start Xorg I get no mouse or keyboard.

After checking I can see /dev/input/by-path and /dev/input/by-id is missing

I don't get the "no pvs" ERROR either that I should have.

Also running

vdevd -1 -l /tmp/vdevd.log -p /tmp/vdevd.pid -c /etc/vdev/vdevd.conf /tmp/dev/

generates link directories in /dev/tmp/input

Allthough without "-1" that is execute it as daemon

vdevd -l /tmp/vdevd.log -p /tmp/vdevd.pid -c /etc/vdev/vdevd.conf /tmp/dev/

Does NOT generates link directories in /dev/tmp/input

No ERROR's in vdevd.log ( other than #96 )

vdevd.log.txt

Any hints on this one?

I can also say that the same behaviour is present on devuan. EDIT I have problems on devuan but cannot say for sure they are exactly the same!!!! I started to try and hack in vdev there.

On your local install with vdev are you running devuan or debian

suedi commented 8 years ago

I figured it out that I should use

if_exists=run

To run an action allthough it was added by devtmpfs earlier.

These are the ones that I added if_exists=run statements

With these I get a working keyboard! However I miss for instance /dev/snd/seq and got an ERROR on that

ERROR: /bin/chown: cannot access /dev/snd/seq [dev_tree.txt](https://github.com/jcnelson/vdev/files/136583/dev_tree.txt) : No such file or directory

What action creates /dev/snd/seq?

Also as I said I don't get my usual pvs ERROR but probably cause I don't have if_exists= in disk.act, right?

Could we please have some discussion about what actions would be needed to be run with devtmpfs mounted on /dev?

dev_tree.txt

fbt commented 8 years ago

Maybe detect a devtmpfs and switch to an “always run if exists” mode? Or! Or, even better, just have a switch that makes all the handlers behave as if “if_exists=run” is set for them? So that we can run vdevd with -1 and that key over a devtmps on boot, then start it normally as a daemon.