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@xxxxxxxxxx) http://compton.nu/ _______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx