From patchwork Thu Aug 14 09:03:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 35392 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f72.google.com (mail-oa0-f72.google.com [209.85.219.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C2556203C5 for ; Thu, 14 Aug 2014 09:04:12 +0000 (UTC) Received: by mail-oa0-f72.google.com with SMTP id m1sf5523544oag.3 for ; Thu, 14 Aug 2014 02:04:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=vlYobt4kLUWzablrOWCI9amficGAJrlQQGJG5PfXf4Y=; b=LFVmqlAXrt/7Xw8b/y2Ff3oaOk3FK/euoljJ6Ly1tPRebJtIi22/LGL14lkqadBlTa 67GhxKL0R8xfB6kEmvPDzOjiPqITc3W4nnmLAQzqn+BUm4qBdzHhcYQBLpKEVVK816gZ 0ub3DnvEDjgaCb9BwQ04SHy4R6D3+9r5zN5a2es/1sRWu+hbB54Zv/H/7lUMoNSg6Cf5 3xoBMNggDwjKm11RdyKC+eP6nSuNQJYkNoVrD6+J2CIY5gz8QlI5ucAAATaKH8kN1/ZZ 90Ke/CciLWFhIfPXTkN3uD3lRY66noVMds4p6oSdlksCa3G3UFZqvOMTqS4Zs68HchD0 ZwRA== X-Gm-Message-State: ALoCoQkgEmuhdd0HSWxYgBI5CNvdyP/k5aHblC1EGhSdZUmq6SZ+7FLTsf4dizI0JFLwbYi29mCS X-Received: by 10.182.56.200 with SMTP id c8mr5475862obq.7.1408007052267; Thu, 14 Aug 2014 02:04:12 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.80.241 with SMTP id c104ls863205qgd.39.gmail; Thu, 14 Aug 2014 02:04:12 -0700 (PDT) X-Received: by 10.53.6.132 with SMTP id cu4mr130146vdd.62.1408007052130; Thu, 14 Aug 2014 02:04:12 -0700 (PDT) Received: from mail-vc0-f177.google.com (mail-vc0-f177.google.com [209.85.220.177]) by mx.google.com with ESMTPS id i6si2280492vdt.83.2014.08.14.02.04.12 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 14 Aug 2014 02:04:12 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.177 as permitted sender) client-ip=209.85.220.177; Received: by mail-vc0-f177.google.com with SMTP id hy4so1012543vcb.8 for ; Thu, 14 Aug 2014 02:04:12 -0700 (PDT) X-Received: by 10.53.5.163 with SMTP id cn3mr323818vdd.3.1408007052010; Thu, 14 Aug 2014 02:04:12 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp17516vcb; Thu, 14 Aug 2014 02:04:11 -0700 (PDT) X-Received: by 10.194.8.35 with SMTP id o3mr9955800wja.3.1408007050748; Thu, 14 Aug 2014 02:04:10 -0700 (PDT) Received: from afflict.kos.to (afflict.kos.to. [92.243.29.197]) by mx.google.com with ESMTPS id d12si5654164wiv.48.2014.08.14.02.04.09 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Aug 2014 02:04:10 -0700 (PDT) Received-SPF: none (google.com: voipio@kos.to does not designate permitted sender hosts) client-ip=92.243.29.197; 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 7C88E2651C; Thu, 14 Aug 2014 11:04:09 +0200 (CEST) Received: (nullmailer pid 22813 invoked by uid 1000); Thu, 14 Aug 2014 09:04:07 -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 12:03:53 +0300 Message-Id: <1408007033-22777-1-git-send-email-riku.voipio@linaro.org> X-Mailer: git-send-email 2.0.1 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: riku.voipio@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.177 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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.