summaryrefslogtreecommitdiffstats
path: root/core/modules/systemd-distro/module.build
diff options
context:
space:
mode:
authorSimon Rettberg2020-08-03 18:04:59 +0200
committerYour Name2020-08-03 18:04:59 +0200
commita069ecafe76710cdc758f5c79a7c000bfe3a7e76 (patch)
treebc8de78515c7b5d0c24ffc3e7e216e5d846082bb /core/modules/systemd-distro/module.build
parent[rfs-stage31] Fix hostname lookup for newer busybox nslookup (diff)
downloadmltk-a069ecafe76710cdc758f5c79a7c000bfe3a7e76.tar.gz
mltk-a069ecafe76710cdc758f5c79a7c000bfe3a7e76.tar.xz
mltk-a069ecafe76710cdc758f5c79a7c000bfe3a7e76.zip
[systemd-distro] Get this module into working state, switch
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"
}