diff options
| author | Ming Liu <liu.ming50@gmail.com> | 2023-05-09 13:36:20 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-05-09 17:27:50 -0700 |
| commit | 48bc4b2d5e4688bac10bcca26657a5fe660b93ab (patch) | |
| tree | 4ad64d775af3fb84a7b855467ddd38f7c30146f8 | |
| parent | e111f75c315a4db16349fb8c50c40a68c2bdda8b (diff) | |
| download | meta-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>
| -rw-r--r-- | meta-oe/recipes-support/libusbgx/libusbgx/usbgx.service | 4 |
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] |
| 2 | Description=Load USB gadget schemas | 2 | Description=Load USB gadget schemas |
| 3 | Requires=sys-kernel-config.mount | ||
| 4 | After=sys-kernel-config.mount | ||
| 3 | 5 | ||
| 4 | [Service] | 6 | [Service] |
| 5 | Type=oneshot | 7 | Type=simple |
| 6 | ExecStart=/usr/bin/gadget-start | 8 | ExecStart=/usr/bin/gadget-start |
| 7 | 9 | ||
| 8 | [Install] | 10 | [Install] |
