diff options
author | Artur Kowalski <arturkow2000@gmail.com> | 2025-01-20 13:46:06 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-01-21 12:07:56 +0000 |
commit | 2d70424d66014cbd30a2e9be2d23b422bea23e54 (patch) | |
tree | f6d873e8790ed4042a49fab6672fe42c4c12b2f6 | |
parent | 2ff2277ba3e08f4d486f20e3565c9c43d1e239a1 (diff) | |
download | poky-2d70424d66014cbd30a2e9be2d23b422bea23e54.tar.gz |
image.bbclass: enable systemd user services
Run systemctl preset-all with --global flag so user unit's are enabled
the same way system units are.
(From OE-Core rev: cdc3b3028f6d71788b5fdd99436f69fbf18f613e)
Signed-off-by: Artur Kowalski <arturkow2000@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes-recipe/image.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes-recipe/image.bbclass b/meta/classes-recipe/image.bbclass index 84a2017eb5..f08818db03 100644 --- a/meta/classes-recipe/image.bbclass +++ b/meta/classes-recipe/image.bbclass | |||
@@ -702,6 +702,7 @@ reproducible_final_image_task () { | |||
702 | systemd_preset_all () { | 702 | systemd_preset_all () { |
703 | if [ -e ${IMAGE_ROOTFS}${root_prefix}/lib/systemd/systemd ]; then | 703 | if [ -e ${IMAGE_ROOTFS}${root_prefix}/lib/systemd/systemd ]; then |
704 | systemctl --root="${IMAGE_ROOTFS}" --preset-mode=enable-only preset-all | 704 | systemctl --root="${IMAGE_ROOTFS}" --preset-mode=enable-only preset-all |
705 | systemctl --root="${IMAGE_ROOTFS}" --global --preset-mode=enable-only preset-all | ||
705 | fi | 706 | fi |
706 | } | 707 | } |
707 | 708 | ||