Hi again,

On 10/1/21 20:45, aitor wrote:
On the other hand, i defined a separate config
file with a minimal amount of actions for vdev during the load of the temporary root
filesystem (initrd) and the subsequent first stage of runit.

The rest of the actions run in the foreground [*] together with the daemon handled by runit:

exec /sbin/vdevd -f -c /etc/vdev/vdevd.conf /dev

ending up at the line nÂș525 of linux.c:

https://github.com/jcnelson/vdev/blob/master/vdevd/os/linux.c <https://github.com/jcnelson/vdev/blob/master/vdevd/os/linux.c>

and remaining in waiting for possible events on a file descriptor (like USB connections).

Cheers,

Aitor.

[*] The binary that is being called in the run script handled by runit (vdevd in our case) should run in the foreground, and it should be run without spawning a new process or a shell.
This point explains the use of the builtin *exec* command.
_______________________________________________
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng

Reply via email to