You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, hotplugging a USB device like /dev/ttyUSB0 or /dev/ttyACM0 (using uart: true add-on configuration) does not update the permissions correctly if CGroupsV2 is used (HAOS 9.x).
Permissions are correctly set when the device, or a device of that same major, is plugged in at boot.
From what I understand, the reason is that systemd crgroup support (which runc calls) requires an existing device with that major for it to be able to resolve the major from /proc/devices. This is at least true when using <major>:* type of rules (which Supervisor is using).
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.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
Describe the issue
Currently, hotplugging a USB device like
/dev/ttyUSB0
or/dev/ttyACM0
(usinguart: true
add-on configuration) does not update the permissions correctly if CGroupsV2 is used (HAOS 9.x).Permissions are correctly set when the device, or a device of that same major, is plugged in at boot.
From what I understand, the reason is that systemd crgroup support (which runc calls) requires an existing device with that major for it to be able to resolve the major from
/proc/devices
. This is at least true when using<major>:*
type of rules (which Supervisor is using).https://github.com/opencontainers/runc/blob/v1.1.4/libcontainer/cgroups/systemd/common.go#L236-L256
Possible solution: Add the
<major>:*
rules not at start but when the first device of that major is being plugged-in.Steps to reproduce
uart: true
Environment details
Supervisor logs
Supervisor logs
System Information
System Information
The text was updated successfully, but these errors were encountered: