On 18/03/2019 14:07, Daniel P. Berrangé wrote:
Historically in Fedora the /dev/net/tun device always existed, even
if
there is no 'tun' module currently loaded. Opening it then cause the
'tun' kernel module to autoload IIUC.
It doesn't just exist..
There is a systemd service (kmod-static-nodes.service) which runs
at boot and generates:
/run/tmpfiles.d/kmod.conf
Which is then processed by systemd-tmpfiles-setup-dev.service to
create the device nodes.
The actual list comes from "/usr/bin/kmod static-nodes" which
uses the devname and char-major aliases in the module to decide
what device nodes to create.
Tom
--
Tom Hughes (tom(a)compton.nu)
http://compton.nu/