From patchwork Fri Dec 8 10:12:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Changqing Li X-Patchwork-Id: 35933 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5B8E1C10F09 for ; Fri, 8 Dec 2023 10:13:02 +0000 (UTC) Received: from mx0a-0064b401.pphosted.com (mx0a-0064b401.pphosted.com [205.220.166.238]) by mx.groups.io with SMTP id smtpd.web10.17130.1702030381246300802 for ; Fri, 08 Dec 2023 02:13:01 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@windriver.com header.s=PPS06212021 header.b=lIToFkcY; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.166.238, mailfrom: prvs=07066c4dc9=changqing.li@windriver.com) Received: from pps.filterd (m0250809.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 3B86ixkB002951 for ; Fri, 8 Dec 2023 02:13:00 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=from:to:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s= PPS06212021; bh=yB3hTlsI/dclUEoUpM3+ppmPLP9JM8W4+aYJkLfCntA=; b= lIToFkcYKGpqOJKstsz80kQjNbZwKdTq+020y68PYpwS3l40MC35VLXmFYRP5nMs E+r5Bh5oStO8Ru7j/JPFWZHvP1wvSxdjqcDgxmXBQe6jdEPxcluySKowu9zrZOS/ GS8jpzYNtLU4xdGtP1spvM1YEpUJtfovpWYoP4d9Xn+TYObvLtqZuQqcapd082j3 e/iwYeOaWtENTdtkjAzJSQB/sdmZ3Kmk5B7WnsZvXckwjVLo+413EIMvQdkXRRAE h9gTed6ubHJTs/zCrX4sriWbDjDv4QpR2/yEMM6gczOCey1FRwuyusRJWDhvbf/s sPPS6Gu1DcSyXh8OjL6kbw== Received: from ala-exchng01.corp.ad.wrs.com (ala-exchng01.wrs.com [147.11.82.252]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 3utd2rtnqp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Fri, 08 Dec 2023 02:13:00 -0800 (PST) Received: from ala-exchng01.corp.ad.wrs.com (147.11.82.252) by ala-exchng01.corp.ad.wrs.com (147.11.82.252) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 8 Dec 2023 02:13:04 -0800 Received: from pek-lpg-core2.wrs.com (128.224.153.41) by ala-exchng01.corp.ad.wrs.com (147.11.82.252) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Fri, 8 Dec 2023 02:13:03 -0800 From: To: Subject: [PATCH 5/5] eudev: create dir /tmp if persistent tmp is used Date: Fri, 8 Dec 2023 18:12:53 +0800 Message-ID: <20231208101253.4042712-7-changqing.li@windriver.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231208101253.4042712-1-changqing.li@windriver.com> References: <20231208101253.4042712-1-changqing.li@windriver.com> MIME-Version: 1.0 X-Proofpoint-GUID: xchS1XFTjNSQ1cEmoY1GgfMi15tXU8UZ X-Proofpoint-ORIG-GUID: xchS1XFTjNSQ1cEmoY1GgfMi15tXU8UZ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-16_25,2023-11-16_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 bulkscore=0 priorityscore=1501 phishscore=0 spamscore=0 impostorscore=0 clxscore=1015 lowpriorityscore=0 adultscore=0 suspectscore=0 mlxlogscore=661 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2312080084 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 08 Dec 2023 10:13:02 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/192026 From: Changqing Li 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 --- 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 () {