summaryrefslogtreecommitdiffstats
path: root/meta-oe
diff options
context:
space:
mode:
authorMing Liu <liu.ming50@gmail.com>2023-05-09 13:36:20 +0200
committerKhem Raj <raj.khem@gmail.com>2023-05-09 17:27:50 -0700
commit48bc4b2d5e4688bac10bcca26657a5fe660b93ab (patch)
tree4ad64d775af3fb84a7b855467ddd38f7c30146f8 /meta-oe
parente111f75c315a4db16349fb8c50c40a68c2bdda8b (diff)
downloadmeta-openembedded-48bc4b2d5e4688bac10bcca26657a5fe660b93ab.tar.gz
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>
Diffstat (limited to 'meta-oe')
-rw-r--r--meta-oe/recipes-support/libusbgx/libusbgx/usbgx.service4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/libusbgx/libusbgx/usbgx.service b/meta-oe/recipes-support/libusbgx/libusbgx/usbgx.service
index e2aa95a521..ba92f1ab83 100644
--- a/meta-oe/recipes-support/libusbgx/libusbgx/usbgx.service
+++ b/meta-oe/recipes-support/libusbgx/libusbgx/usbgx.service
@@ -1,8 +1,10 @@
1[Unit] 1[Unit]
2Description=Load USB gadget schemas 2Description=Load USB gadget schemas
3Requires=sys-kernel-config.mount
4After=sys-kernel-config.mount
3 5
4[Service] 6[Service]
5Type=oneshot 7Type=simple
6ExecStart=/usr/bin/gadget-start 8ExecStart=/usr/bin/gadget-start
7 9
8[Install] 10[Install]