I am trying to create custom image for beaglbone. One of the features is enabled openvpn. The problem is that on the first boot there is no /dev/net/tun file despite the fact I have created in while creating rootfs with:
mkdir -p /dev/net
chroot rootfs/ mknod /dev/net/tun c 10 200
chmod 600 /dev/net/tun
If I create it the same way being logged in beaglbone system file persists and openvpn works. So questions are who is responsible for maintaining this file and how to make system create it automatically except for using custom systemd service?
Thank you!