aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support
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/recipes-support
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/recipes-support')
-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 @@
[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]