:: Re: [DNG] vdev (was: Re: if2mac ini…
Pàgina inicial
Delete this message
Reply to this message
Autor: aitor
Data:  
A: dng
Assumpte: Re: [DNG] vdev (was: Re: if2mac init.d service for persistent network interface names)
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.