systemd-compat-units: ensure /tmp is mounted when starting run-postinsts
authorAndreas Müller <schnitzeltony@googlemail.com>
Mon, 20 Aug 2012 16:45:06 +0000 (16:45 +0000)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 16:22:55 +0000 (08:22 -0800)
/tmp is required for postinst:
Aug 20 16:59:33 overo S98run-postinsts[68]: * opkg_prep_intercepts: Failed to make temp dir /tmp/opkg-07xOYO/opkg-intercept-wfVgAQ: No such file or directory.
Aug 20 16:59:33 overo S98run-postinsts[68]: * rm_r: Failed to open dir /tmp/opkg-07xOYO: No such file or directory.

This bug left postints unfinished e.g. pango-module-* [1].

[1] http://lists.linuxtogo.org/pipermail/openembedded-devel/2012-August/041096.html

(From meta-openembedded rev: 402a0814947b310835c194b15d3b844e710dd394)

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
meta-openembedded/meta-systemd/recipes-core/systemd/systemd-compat-units.bb
meta-openembedded/meta-systemd/recipes-core/systemd/systemd-compat-units/run-postinsts.service

index aefd6a7..6b6b4dd 100644 (file)
@@ -3,7 +3,7 @@ DESCRIPTION = "Units to make systemd work better with existing sysvinit scripts"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
 
-PR = "r17"
+PR = "r18"
 
 inherit allarch
 
index 879a251..da6fe76 100644 (file)
@@ -2,7 +2,7 @@
 Description=Run pending postinsts
 DefaultDependencies=no
 ConditionPathExists=|/etc/rcS.d/S98run-postinsts
-After=remount-rootfs.service
+After=remount-rootfs.service tmp.mount
 Before=sysinit.target
 
 [Service]