summaryrefslogtreecommitdiffstats
path: root/remote/setup_target
diff options
context:
space:
mode:
authorSimon Rettberg2013-09-18 15:05:07 +0200
committerJonathan Bauer2013-09-30 13:26:31 +0200
commitaf77b6c2c1430f00850cb15ed0eda0a0fb41e1df (patch)
treeecd9f2adf4756b6ee7ae557f568d2399b7794f45 /remote/setup_target
parent[polkit] polkit.build: +missing directory for opensuse (diff)
downloadtm-scripts-af77b6c2c1430f00850cb15ed0eda0a0fb41e1df.tar.gz
tm-scripts-af77b6c2c1430f00850cb15ed0eda0a0fb41e1df.tar.xz
tm-scripts-af77b6c2c1430f00850cb15ed0eda0a0fb41e1df.zip
[dbus] Create systemd service using a template instead of grabbing from running system
Also remove the ugly hack that moves /lib/systemd to /etc/systemd; this would only help mixing systemd service files from the running system with our own -- trouble ahead! Warn if /lib/systemd exists in the target build dir.
Diffstat (limited to 'remote/setup_target')
-rwxr-xr-xremote/setup_target11
1 files changed, 5 insertions, 6 deletions
diff --git a/remote/setup_target b/remote/setup_target
index 04af2158..00a182f3 100755
--- a/remote/setup_target
+++ b/remote/setup_target
@@ -358,13 +358,12 @@ process_module() {
post_process_target() {
local TOOL_STR="$TOOL_STR post_process_target:"
- # move systemd files from /lib to /etc/lib
- pinfo "move systemd files from /lib/systemd to /etc/systemd"
if [ -d "${TARGET_BUILD_DIR}/lib/systemd" ]; then
- cd "${TARGET_BUILD_DIR}/lib"
- tarcopy "systemd" "${TARGET_BUILD_DIR}/etc"
- cd - &> /dev/null
- rm -r "${TARGET_BUILD_DIR}/lib/systemd"
+ pwarning "/lib/systemd exists in the generated target. It is not advisable to fetch existing"
+ pwarning "systemd service files from the template system, as it might conflict with generated"
+ pwarning "ones. In fact, some systems don't even use systemd so there might be no existing"
+ pwarning "service files. Please generate your own service file and place it in /etc/systemd."
+ pwarning "All files in /lib/systemd will be ignored."
fi
# figure out all relevant ld-paths