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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 56160C636CD for ; Fri, 10 Feb 2023 15:32:12 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 82F7F86000; Fri, 10 Feb 2023 16:31:55 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="aAU0ZI8y"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1F7CC85FD7; Fri, 10 Feb 2023 16:30:39 +0100 (CET) Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id DC47885C0F for ; Fri, 10 Feb 2023 16:30:24 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x831.google.com with SMTP id z5so6088123qtn.8 for ; Fri, 10 Feb 2023 07:30:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=iYeclmARJUFveCP1wtFmH5p/Phaioh/zpnNNd5Iok7M=; b=aAU0ZI8y9lhZygStnq4bv/YpiPQonmkVDnO6M+VL5plFlv8YZGr9lskImCZFUi1I6n KmQMzeQbblaXJHyksxKJVV+sNsvNT+L5DVhzWzFRR+40+g5LBjRrXQCcghRpLA67YWRF 4r5IKwhdx+K9FNr4zOLHLjlq2j+FGQstk/Xeo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=iYeclmARJUFveCP1wtFmH5p/Phaioh/zpnNNd5Iok7M=; b=0r+pOq2RRabi0LhVSmHIVJIUvqmqNRQetpzUzl7LPQ35ZimS7fAY+n+dZM57nbeLjG /wjNuGX5bDiYJq0soAjX3b70qi6weV6NLsyYjz3VfBQM8I/aZl3iVkb2Hnjj6CcooINA hdFn+tzEiNSS22/bmCu5dygWzwuL+RrV2KAkZfmSVFiVdvkmXKpxU+TACAUwZeh47/WI YoyrBckDNAQN4TYDn/YHZUd7R1tHQR0mhCZoNM7tPlG3euLknnBD4E+zgkmi74r9N+bp rNWJ68wM0Qp3YG7s4qDaro+eb0BOxaqX9SEMiPajuclRWHbOWLGrq697EHVICWjnayqT WS2Q== X-Gm-Message-State: AO0yUKWxZ1Re1avm7u6NE4mSlz57o2H7An6xtZhp46uqy333YZlIDO20 fVtba2ELuIMZ0zdU8v6BUpGgXQ== X-Google-Smtp-Source: AK7set84RUcdlSSm/UWeTsZeWKsoFhQyBNmQj3FJZyayn5JmZ7Mz1bQ8iVfE7plf6bMoSwPjrJor/Q== X-Received: by 2002:a05:622a:286:b0:3bb:7c38:9478 with SMTP id z6-20020a05622a028600b003bb7c389478mr15377566qtw.16.1676043023639; Fri, 10 Feb 2023 07:30:23 -0800 (PST) Received: from bill-the-cat (2603-6081-7b00-6400-3812-7488-b449-9d25.res6.spectrum.com. [2603:6081:7b00:6400:3812:7488:b449:9d25]) by smtp.gmail.com with ESMTPSA id z16-20020ac84310000000b003b9a505627bsm3521832qtm.79.2023.02.10.07.30.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Feb 2023 07:30:23 -0800 (PST) Date: Fri, 10 Feb 2023 10:30:21 -0500 From: Tom Rini To: Tim Lee Cc: sjg@chromium.org, chli30@nuvoton.com, u-boot@lists.denx.de Subject: Re: [PATCH v1 1/1] tools: env: use /run to store lockfile Message-ID: References: <20230210090539.1631-1-timlee660101@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="rt1WlswDsfnvBoJg" Content-Disposition: inline In-Reply-To: <20230210090539.1631-1-timlee660101@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean --rt1WlswDsfnvBoJg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 10, 2023 at 05:05:39PM +0800, Tim Lee wrote: > According this issue https://github.com/ppp-project/ppp/issues/339. > Eventually, the dt-utils changed lock directory to fix missing /var/lock > directory error then make dt-utils can run normally. >=20 > We also have a similar issue with these two utilities fw_printenv and > fw_setenv will failed when the directory /var/lock is non-existent. >=20 > We have a custom linux distribution built with yocto (OpenBMC) that > use systemd and it deprecated the /var/lock directory. > More discussion in systemd/systemd#15668. >=20 > Thus, we sync with community's solution for uboot/tools/env utilities: > The current location /var/lock is considered legacy (at least by systemd). > Just use /run to store the lockfile and append the usual .lock suffix. >=20 > Tested: > Verified /run/lock is now present and fw_printenv can work in OpenBMC. >=20 > Signed-off-by: Tim Lee Reviewed-by: Tom Rini --=20 Tom --rt1WlswDsfnvBoJg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmPmYwQACgkQFHw5/5Y0 tyyVmwv/eFuFu8oqPMqF90M+wRBERorvAkDk9rqzDNubtZOH67Ol4MoZiNpYWP4v Xi0gtofLLrkLkmZiBZaj1FS/3ZgxlfpCIsyQsnBHNhs+s8ULaBSwsQ1DdoQXmisE 2aP5RwoSLHrA0Uvie4Tdxt+ZR+mo3a0BbYeCvzliftrM076ZNuViSTFqblzLm83J qMddjvmkSXbCmARco9EYUi1Ir742GoFh+XqQO6vJ2+iQt2FgbCCjbebrkBeopwQs rOym8jwIQ9B69bvOJag7kGHLH/JFUaA4yVF+jDvtYTh3Lqe1qhteipp5MdjKB0h7 MgT2bbasKzJB/qNfrBGNdmW7Dvy6n0WPMpZj+0MTScThz3WLuV8RZiApzubaLXDE 0g4S//S6z2jMy46Icz/bz++fXhAvE1HfqMMgNP237iCz7VLjlsvEdVIagskg3vun d2Jk8WK0ZrnWJG9wndjkvFjtL3DQG00ddAdycRdu9m8djo27cQevNSKJtU26tV+4 1O+ywXAa =hVxl -----END PGP SIGNATURE----- --rt1WlswDsfnvBoJg--