Is there a way to rename a device (e.g. using devfs rules) within /dev (e.g. rename /dev/cuaU0 -> /dev/zigbee) or create a second node that points to the same piece of hardware (i.e. both /dev/cuaU0 and /dev/zigbee refer to the same device)?
I would like to pass a custom named device (e.g. /dev/zigbee) into a jail.
I have had a look at this thread that recommended putting a link in /etc/devfs.conf, but the man page says "The devfs.conf file provides an easy way to set ownership and permissions, or create links for devices available at boot. It does not work for devices plugged in and out after the system is up and running, e.g. USB devices." Also, the line would be `link cuaU0 zigbee`, but I could not guarantee that the same device would be cuaU0 every time I boot up.
Background:
I have hit the same roadblock as this post and this post that both wanted to do similar things.
I have a USB device that is accessible under /dev/cuaU0 on the host.
I can pass cua* into jails by creating a custom devfs ruleset.
I can create a devd rule that creates a symlink to from /dev/zigbee to /dev/cuaU0 when the device is plugged in, and removes the symlink when the device is removed.
But I can't pass this symlink into the jails for the reasons outlined in the two posts linked above.
I would like to pass a custom named device (e.g. /dev/zigbee) into a jail.
I have had a look at this thread that recommended putting a link in /etc/devfs.conf, but the man page says "The devfs.conf file provides an easy way to set ownership and permissions, or create links for devices available at boot. It does not work for devices plugged in and out after the system is up and running, e.g. USB devices." Also, the line would be `link cuaU0 zigbee`, but I could not guarantee that the same device would be cuaU0 every time I boot up.
Background:
I have hit the same roadblock as this post and this post that both wanted to do similar things.
I have a USB device that is accessible under /dev/cuaU0 on the host.
I can pass cua* into jails by creating a custom devfs ruleset.
I can create a devd rule that creates a symlink to from /dev/zigbee to /dev/cuaU0 when the device is plugged in, and removes the symlink when the device is removed.
But I can't pass this symlink into the jails for the reasons outlined in the two posts linked above.