From: Changqing Li <changqing...@windriver.com>

the automount rule for udev needs /tmp directory available, if
VOLATILE_TMP_DIR = yes, to make sure /var/volatile/tmp exist, if
VOLATILE_TMP_DIR = no, to make sure /tmp exist.

Signed-off-by: Changqing Li <changqing...@windriver.com>
---
 meta/recipes-core/udev/eudev_3.2.14.bb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/recipes-core/udev/eudev_3.2.14.bb 
b/meta/recipes-core/udev/eudev_3.2.14.bb
index d0758691bd..d89697a916 100644
--- a/meta/recipes-core/udev/eudev_3.2.14.bb
+++ b/meta/recipes-core/udev/eudev_3.2.14.bb
@@ -50,6 +50,10 @@ do_install:append() {
 
        # Use classic network interface naming scheme
        touch ${D}${sysconfdir}/udev/rules.d/80-net-name-slot.rules
+
+    if [ ${@ oe.types.boolean('${VOLATILE_TMP_DIR}') } = False ]; then
+        sed -i -e 's%mkdir -m 1777 -p /var/volatile/tmp%mkdir -m 1777 -p 
/tmp%g' ${D}${sysconfdir}/init.d/udev
+    fi
 }
 
 do_install:prepend:class-target () {
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#192026): 
https://lists.openembedded.org/g/openembedded-core/message/192026
Mute This Topic: https://lists.openembedded.org/mt/103052521/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to