summaryrefslogtreecommitdiffstats
path: root/core/modules/systemd-distro/module.build
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/systemd-distro/module.build')
-rw-r--r--core/modules/systemd-distro/module.build5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/modules/systemd-distro/module.build b/core/modules/systemd-distro/module.build
index 0745ad3c..5c2dd958 100644
--- a/core/modules/systemd-distro/module.build
+++ b/core/modules/systemd-distro/module.build
@@ -15,6 +15,9 @@ build () {
}
post_copy() {
- :
+ [ -d "${TARGET_BUILD_DIR}/usr/lib/systemd/system" ] \
+ && ! [ -L "${TARGET_BUILD_DIR}/usr/lib/systemd/system" ] \
+ && perror "/usr/lib/systemd/system must not exist in target build dir"
+ ln -nfs "../../../lib/systemd/system" "${TARGET_BUILD_DIR}/usr/lib/systemd/system"
}