From: "Artur Kowalski" <arturkow2000@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: Artur Kowalski <arturkow2000@gmail.com>
Subject: [PATCH 3/3] image.bbclass: enable systemd user services
Date: Sun, 12 Jan 2025 15:31:41 +0100 [thread overview]
Message-ID: <20250112143141.1300189-4-arturkow2000@gmail.com> (raw)
In-Reply-To: <20250112143141.1300189-1-arturkow2000@gmail.com>
Run systemctl preset-all with --global flag so user unit's are enabled
the same way system units are.
Signed-off-by: Artur Kowalski <arturkow2000@gmail.com>
---
meta/classes-recipe/image.bbclass | 1 +
1 file changed, 1 insertion(+)
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 () {
systemd_preset_all () {
if [ -e ${IMAGE_ROOTFS}${root_prefix}/lib/systemd/systemd ]; then
systemctl --root="${IMAGE_ROOTFS}" --preset-mode=enable-only preset-all
+ systemctl --root="${IMAGE_ROOTFS}" --global --preset-mode=enable-only preset-all
fi
}
--
2.47.0
prev parent reply other threads:[~2025-01-12 14:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-12 14:31 [PATCH 0/3] Systemd user presets support arturkow2000
2025-01-12 14:31 ` [PATCH 1/3] systemd-systemctl: add support for --global flag Artur Kowalski
2025-01-12 15:34 ` [OE-core] " Alex Kiernan
2025-01-13 21:18 ` Artur Kowalski
2025-01-15 14:04 ` Alex Kiernan
2025-01-12 14:31 ` [PATCH 2/3] systemd.bbclass: add support for user presets Artur Kowalski
2025-01-13 10:55 ` [OE-core] " Alexander Kanavin
2025-01-12 14:31 ` Artur Kowalski [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250112143141.1300189-4-arturkow2000@gmail.com \
--to=arturkow2000@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox