summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiku Voipio <riku.voipio@linaro.org>2014-08-14 12:03:53 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-23 09:26:12 +0100
commit8c0b4682a535c62da9ceed1b25391fd00a80bb8e (patch)
treeb72bf0e016091ba4aee2b9e0ce7b94a3e28c4f02
parent2c111f2b5f46b4be22f712f1cb7b4cd579c6ff03 (diff)
downloadtizen-distro-8c0b4682a535c62da9ceed1b25391fd00a80bb8e.tar.gz
tizen-distro-8c0b4682a535c62da9ceed1b25391fd00a80bb8e.tar.bz2
tizen-distro-8c0b4682a535c62da9ceed1b25391fd00a80bb8e.zip
udev: fix /var/volatile/tmp permissions
Mariadb postinstall will fail with: ERROR: 1 Can't create/write to file '/tmp/#sql_a2a_0.MAI' (Errcode: 13) 140814 8:14:06 [ERROR] Aborting /tmp is a link to /var/volatile/tmp, set as: drwxr-xr-x 3 root root 60 Aug 14 08:07 . populate-volatiles.sh does not create the directory or set permissions, because it already exists: Checking for -/var/volatile/tmp-. Creating directory -/var/volatile/tmp-. Target already exists. Skipping. Traced the creation to the initfile in udev. Create with -m 1755 to be sure. With this patch applied, mysql postinst succeeds and creates the neccesary user tables. (From OE-Core rev: 5743c7632ac9c33051f6fca60f5507d3808e8e3a) Signed-off-by: Riku Voipio <riku.voipio@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-core/udev/udev/init2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/udev/udev/init b/meta/recipes-core/udev/udev/init
index f2c84d5d3e..a442c74f5c 100644
--- a/meta/recipes-core/udev/udev/init
+++ b/meta/recipes-core/udev/udev/init
@@ -57,7 +57,7 @@ case "$1" in
# the automount rule for udev needs /tmp directory available, as /tmp is a symlink
# to /var/tmp which in turn is a symlink to /var/volatile/tmp, we need to make sure
# /var/volatile/tmp directory to be available.
- mkdir -p /var/volatile/tmp
+ mkdir -m 1777 -p /var/volatile/tmp
# Cache handling.
# A list of files which are used as a criteria to judge whether the udev cache could be reused.