summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Kowalski <arturkow2000@gmail.com>2025-01-20 13:46:06 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-01-21 12:07:56 +0000
commit2d70424d66014cbd30a2e9be2d23b422bea23e54 (patch)
treef6d873e8790ed4042a49fab6672fe42c4c12b2f6
parent2ff2277ba3e08f4d486f20e3565c9c43d1e239a1 (diff)
downloadpoky-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.bbclass1
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 () {
702systemd_preset_all () { 702systemd_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