New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Supervisor addon functionality lacks ability to allow usbip bind with home assistant os 9.0rc2 #3861
Comments
@mdegat01 Would a pull request adding this functionality be entertained or is this something you guys already had/have planned? Looking at existing implementation there are a few ways I could see this being added, the one that jumps to mind would be a very clean modified copy of how gpio switch works. I would propose a bool switch named either "usbip_bus" or "usbip" which when enabled would mount: all with rw, additional may make sense to enable SYS_RAWIO as part of the single switch, although argument can be made that may not be needed and should be up to the addon developer to add in "privileged". |
@irakhlin we definitely welcome a PR here. I added it to my list but no I have gotten to it yet. Would greatly appreciate it if you know how to tackle it 👍 |
found it, if anyone comes across this the option is moved to
|
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
has this been implemented yet? |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
Describe the issue you are experiencing
Supervisor does now allow interacting with usbip /sys device with newest home assistant os (that includes usbip drivers).
What is the used version of the Supervisor?
2022.09.0
What type of installation are you running?
Home Assistant OS
Which operating system are you running on?
Home Assistant Operating System
What is the version of your installed operating system?
9.0rc2
What version of Home Assistant Core is installed?
2022.9.1
Steps to reproduce the issue
I had initially reported this issue to the home assistant OS repo here but it would seem more fitting here.
Home assistant OS 9.0 has added the kernel level usbip drivers to allow addon containers to mount usbip devices, unfortunately as it currently stands the addon config template does not provide enough functionality to fully implement this feature.
To test I created a basic addon container that has usbip binaries along with ssh to navigate inside the container, here.
After correctly loading the vhci-hcd drivers, inside the container run the following:
While I do see /sys/devices/platform/vhci_hcd.0/attach mounted in the container:
My understanding is that /sys is mounted as read only:
I was able to manually modify the addon containers mount points by adding:
However I do not see a way to accomplish this via the addon config template. My understanding is that we would want to be able to mount
/sys/devices/platform/vhci_hcd.0:/sys/devices/platform/vhci_hcd.[x] as the number would increase with each additional usbip device.
Anything in the Supervisor logs that might be useful for us?
Additional information
No response
The text was updated successfully, but these errors were encountered: