summaryrefslogtreecommitdiffstats
path: root/remote/modules
diff options
context:
space:
mode:
authorSimon Rettberg2013-05-06 11:40:40 +0200
committerSimon Rettberg2013-05-06 11:40:40 +0200
commit5b2fefd682a1eaa4cfc7e6b44a1c846684c180ab (patch)
tree6ae1224ab397e0cf086063dfd2a6d4e832476a8e /remote/modules
parentrsyslog fix (diff)
downloadtm-scripts-5b2fefd682a1eaa4cfc7e6b44a1c846684c180ab.tar.gz
tm-scripts-5b2fefd682a1eaa4cfc7e6b44a1c846684c180ab.tar.xz
tm-scripts-5b2fefd682a1eaa4cfc7e6b44a1c846684c180ab.zip
Make mounting squashfs smarter; fix module loading logging
Fixes to rsyslogd module buildscript
Diffstat (limited to 'remote/modules')
-rw-r--r--remote/modules/rsyslogd/rsyslogd.build7
1 files changed, 4 insertions, 3 deletions
diff --git a/remote/modules/rsyslogd/rsyslogd.build b/remote/modules/rsyslogd/rsyslogd.build
index 14e6de8b..c35d07b7 100644
--- a/remote/modules/rsyslogd/rsyslogd.build
+++ b/remote/modules/rsyslogd/rsyslogd.build
@@ -26,8 +26,9 @@ post_copy() {
sed -i 's/^Before=udev/#&/' "${TARGET_BUILD_DIR}"/etc/systemd/system/rsyslog.service
# activate the service
- ln -s rsyslog.service "${TARGET_BUILD_DIR}"/etc/systemd/system/syslog.service
+ ln -sf rsyslog.service "${TARGET_BUILD_DIR}"/etc/systemd/system/syslog.service
[ ! -d "${TARGET_BUILD_DIR}"/etc/systemd/system/basic.target.wants ] && mkdir -p "${TARGET_BUILD_DIR}"/etc/systemd/system/basic.target.wants
- ln -s ../syslog.service "${TARGET_BUILD_DIR}"/etc/systemd/system/basic.target.wants/syslog.service
-
+ ln -sf ../syslog.service "${TARGET_BUILD_DIR}"/etc/systemd/system/basic.target.wants/syslog.service
+ # TODO: more checks
+ sed -i.bak '/^After\=var-run.mount/d;/^Requires\=var-run.mount/d;/^Before\=syslog.target/d' "$TARGET_BUILD_DIR/etc/systemd/system/rsyslog.service"
}