mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-05 14:59:55 +00:00
libusbgx: fix some systemd service conditions
Let usbgx.service require and run after sys-kernel-config.mount. Use "Type=simple" rather than "Type=oneshot", this ensures usbgx.service would not hang on failures, failures could happen in many conditions, like if the end user has manually configured something in configfs, or start usbgx.service twice, or someting wrong in /etc/default/usbgx or /etc/usbgx/*.schema. Signed-off-by: Ming Liu <liu.ming50@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
[Unit]
|
||||
Description=Load USB gadget schemas
|
||||
Requires=sys-kernel-config.mount
|
||||
After=sys-kernel-config.mount
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/gadget-start
|
||||
|
||||
[Install]
|
||||
|
||||
Reference in New Issue
Block a user