Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2012-06-21 21:20:26 (GMT)
committer Daniel Drake <dsd@laptop.org>2012-06-21 21:22:04 (GMT)
commitda79b553b6d5a06d5e25b061b65df9d947dc5fbd (patch)
treedaef6698f01d5e5a4c75aade2018f01f4b7b7517
parent69148de51f68dbae4e967aa201b3e747926ecefe (diff)
base: avoid wtmp games (#11952)
runin testing found a shutdown race. Avoid this issue by not updating wtmp, which we don't persist anyway.
-rw-r--r--modules/base/kspost.10.core.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/base/kspost.10.core.inc b/modules/base/kspost.10.core.inc
index 712c50f..33d267f 100644
--- a/modules/base/kspost.10.core.inc
+++ b/modules/base/kspost.10.core.inc
@@ -251,3 +251,8 @@ cat >> /lib/systemd/system-shutdown/olpc_shutdown.sh <<EOF
/usr/bin/mount -o remount,ro /
EOF
chmod a+x /lib/systemd/system-shutdown/olpc_shutdown.sh
+
+# wtmp updating is racy on shutdown (#11952)
+# Disable it, it's not interesting for us
+rm -f /var/log/wtmp
+ln -s /dev/null /etc/systemd/system/systemd-update-utmp-shutdown.service