From patchwork Thu Aug 14 08:54:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 41368 Delivered-To: patches@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp16974vcb; Thu, 14 Aug 2014 01:54:51 -0700 (PDT) X-Received: by 10.180.99.65 with SMTP id eo1mr10715760wib.12.1408006491096; Thu, 14 Aug 2014 01:54:51 -0700 (PDT) Return-Path: Received: from afflict.kos.to ([2001:4b98:dc0:45:216:3eff:fe3d:166f]) by mx.google.com with ESMTPS id yp1si5231913wjc.168.2014.08.14.01.54.50 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Aug 2014 01:54:50 -0700 (PDT) Received-SPF: none (google.com: voipio@aimless.kos.to does not designate permitted sender hosts) client-ip=2001:4b98:dc0:45:216:3eff:fe3d:166f; Authentication-Results: mx.google.com; spf=neutral (google.com: voipio@aimless.kos.to does not designate permitted sender hosts) smtp.mail=voipio@aimless.kos.to Received: from aimless.kos.to (91-157-196-38.elisa-laajakaista.fi [91.157.196.38]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by afflict.kos.to (Postfix) with ESMTPSA id E74F926546; Thu, 14 Aug 2014 10:54:49 +0200 (CEST) Received: (nullmailer pid 22565 invoked by uid 1000); Thu, 14 Aug 2014 08:54:48 -0000 From: Riku Voipio To: openembedded-core@lists.openembedded.org Cc: patches@linaro.org, Riku Voipio Subject: [PATCH] udev: fix /var/volatile/tmp permissions Date: Thu, 14 Aug 2014 11:54:43 +0300 Message-Id: <1408006483-22528-1-git-send-email-riku.voipio@linaro.org> X-Mailer: git-send-email 2.0.1 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. Signed-off-by: Riku Voipio --- meta/recipes-core/udev/udev/init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-core/udev/udev/init b/meta/recipes-core/udev/udev/init index f2c84d5..a442c74 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.