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 work 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 work 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 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 !