Artix
Cadet
- Joined
- May 25, 2016
- Messages
- 8
Hello,
I use a jail on FreeNAS 11.1-STABLE for home automation (home-assistant)
I have 2 serial usb device used on this jail and I'm having problem with naming.
This two device are named /dev/cuaU[0-1] but I'm not able to persist the name between restart or disconnect of the device.
I tried to investigate devd rules and it works nicely in the FreeNAS system.
In file /dev/devd/zstick.conf
In the jail I tried the following solution :
Is there a way to make devfs know about /dev/zstick and make the unhide thing work?
Another less dirty solution?
Thanks for your help!
I use a jail on FreeNAS 11.1-STABLE for home automation (home-assistant)
I have 2 serial usb device used on this jail and I'm having problem with naming.
This two device are named /dev/cuaU[0-1] but I'm not able to persist the name between restart or disconnect of the device.
I tried to investigate devd rules and it works nicely in the FreeNAS system.
In file /dev/devd/zstick.conf
Code:
attach 1000 { match "vendor" "0x0658"; match "product" "0x0200"; action "ln -sf /dev/cua$ttyname /dev/zstick"; }; notify 1000 { match "subsystem" "DEVICE"; match "type" "DETACH"; match "vendor" "0x0658"; match "product" "0x0200"; action "rm /dev/zstick"; };
In the jail I tried the following solution :
- In jail /dev/devd/zstick.conf --> Cannot do this in the jail because devd is not running.
- In FreeNAS /dev/devfs.rules unhide zstick --> not working, /dev/zstick is only a symbolic link so devfs won't mount it in the jail
Code:
/mnt/tank/jails/home_assistant/dev/zstick -> /mnt/tank/jails/home_assistant/dev/cuaU*
Is there a way to make devfs know about /dev/zstick and make the unhide thing work?
Another less dirty solution?
Thanks for your help!
Last edited by a moderator: