diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2024-02-15 20:16:59 +0100 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2024-02-15 14:14:26 -0800 |
commit | 0b6224a322a7535151859027c1b256a8834f9469 (patch) | |
tree | ef265437830774bb8065062b325aae2cf54756ea /meta-python/recipes-devtools/python/python3-matplotlib | |
parent | 066f509f15d7a06deab200663b54b3bd19839ed9 (diff) | |
download | meta-openembedded-0b6224a322a7535151859027c1b256a8834f9469.tar.gz |
libusbgx: fix usbgx.service stop / restart
On start the usbgx service configures the usb gadget. However if
one stops the service nothing is done, a subsequent start then
tries to configure the gadget again and fails. `systemctl restart`
is implemented by doing a stop followed by a start and thus is
also affected.
Doing a start/stop/start results with the following reported in
status:
| systemd[1]: Starting Load USB gadget schemas...
| gadget-start[801]: usbg_create_gadget() duplicate gadget name
| gadget-start[801]:
| gadget-start[801]: Error on import gadget
| gadget-start[801]: Error: USBG_ERROR_EXIST : Already exist
| gadget-start[812]: ls: write error: Device or resource busy
The run-postinsts service does execute a restart for each package
which uses the systemd class which creates a race condition that the
usbgx service is already started when run-postinsts restarts usbgx
and creates the above error output.
Fix that by unconfiguring the usb gadget on stop.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-matplotlib')
0 files changed, 0 insertions, 0 deletions