systemd: use /bin/mkdir instead of host mkdir path
authorJonathan Liu <net147@gmail.com>
Thu, 29 Aug 2013 02:30:24 +0000 (12:30 +1000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 30 Aug 2013 17:06:32 +0000 (18:06 +0100)
(From OE-Core rev: 9ee883f2f9f36f6d5cca56ac5f179468dfa5b686)

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/systemd/systemd/0001-Use-bin-mkdir-instead-of-host-mkdir-path.patch [new file with mode: 0644]
meta/recipes-core/systemd/systemd_206.bb

diff --git a/meta/recipes-core/systemd/systemd/0001-Use-bin-mkdir-instead-of-host-mkdir-path.patch b/meta/recipes-core/systemd/systemd/0001-Use-bin-mkdir-instead-of-host-mkdir-path.patch
new file mode 100644 (file)
index 0000000..25988fc
--- /dev/null
@@ -0,0 +1,31 @@
+From 5599ab4ae3fe74cdd9699f2874badf241f0148fe Mon Sep 17 00:00:00 2001
+From: Jonathan Liu <net147@gmail.com>
+Date: Wed, 28 Aug 2013 19:09:49 -0700
+Subject: [PATCH] Use /bin/mkdir instead of host mkdir path
+
+If the host system has /usr/bin/mkdir, autoconf would set MKDIR_P to
+/usr/bin/mkdir when it should be /bin/mkdir. As a result, the
+kmod-static-nodes service fails to start on the target because
+/usr/bin/mkdir doesn't exist. This has been observed when building
+systemd on Arch Linux host.
+
+Upstream-Status: Inappropriate [embedded specific]
+Signed-off-by: Jonathan Liu <net147@gmail.com>
+---
+ units/kmod-static-nodes.service.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/units/kmod-static-nodes.service.in b/units/kmod-static-nodes.service.in
+index d8a8420..1daed5f 100644
+--- a/units/kmod-static-nodes.service.in
++++ b/units/kmod-static-nodes.service.in
+@@ -14,5 +14,5 @@ ConditionCapability=CAP_MKNOD
+ [Service]
+ Type=oneshot
+ RemainAfterExit=yes
+-ExecStartPre=@MKDIR_P@ /run/tmpfiles.d
++ExecStartPre=/bin/mkdir -p /run/tmpfiles.d
+ ExecStart=@KMOD@ static-nodes --format=tmpfiles --output=/run/tmpfiles.d/kmod.conf
+-- 
+1.8.3.4
+
index f05aa1b..75bdc61 100644 (file)
@@ -19,6 +19,7 @@ inherit gtk-doc useradd pkgconfig autotools perlnative update-rc.d update-altern
 
 SRC_URI = "http://www.freedesktop.org/software/systemd/systemd-${PV}.tar.xz \
            file://0001-use-CAP_MKNOD-ConditionCapability.patch \
+           file://0001-Use-bin-mkdir-instead-of-host-mkdir-path.patch \
            file://touchscreen.rules \
            ${UCLIBCPATCHES} \
            file://00-create-volatile.conf \