From patchwork Wed Oct 14 16:02:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Norbert Lange X-Patchwork-Id: 1382227 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=d3PwgKJu; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CBHJ848XBz9sTL for ; Thu, 15 Oct 2020 03:03:02 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 0788387F6F; Wed, 14 Oct 2020 16:03:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UvTiJX5YFw20; Wed, 14 Oct 2020 16:02:59 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 116B187BA2; Wed, 14 Oct 2020 16:02:59 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 178D51BF484 for ; Wed, 14 Oct 2020 16:02:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 13FBB87D57 for ; Wed, 14 Oct 2020 16:02:58 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SdULxVkdY1pO for ; Wed, 14 Oct 2020 16:02:57 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ej1-f68.google.com (mail-ej1-f68.google.com [209.85.218.68]) by hemlock.osuosl.org (Postfix) with ESMTPS id 4120587CFD for ; Wed, 14 Oct 2020 16:02:57 +0000 (UTC) Received: by mail-ej1-f68.google.com with SMTP id h24so5558588ejg.9 for ; Wed, 14 Oct 2020 09:02:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4D4q/9LjUe+OSmziJZInPiJg2Ta7pER683Cobemri1s=; b=d3PwgKJuqF4humQig1pBnkLHP01GY/DBh6WeP1gClLsmNVOzRZlmCrq3l31qxIGw/N O6MBl/aKGewsO91ZN491XwFv5IPmQ3P3LHbi9sLozsBfKyDYRqv+DpTLLSuJD14oX946 JD5jZbpG/jtK3EWy4ZvQP8DISkCTnuXWMQmyHzHzc3i338B1k/dn0bsAwkwRgdMHHnTu ecZg6FIi0X3e0KxWnSqHhLu8f/4iab3SFLwXMGbGisBg7z+m3uPYN6CuOzUxyNAgm7p5 9KkNezn3qx9UVFEUBsRPanKjtzII+ci+HqZRBJub2yad32sQ3M9UrQOvDBqaofdPzvwL RZcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4D4q/9LjUe+OSmziJZInPiJg2Ta7pER683Cobemri1s=; b=lM4M5b7zB+rkbfwHjfFS3fZJAcf1dh/4kqP62UfuR/HijAqlD2wx5UeV16dbSW+eYH 5R9ylQn9SNH+58b7AVwmEbbgqCpQeJGLWJZgmy9NSxk+gvi0myxGr5L4qyzuQVR581Om I6qq3dk7UtXGPURQdj0sn29lJ49yUY8D5q9szUGSU6ZLs6P2IVem6Q8shsU63Z+aVgVG /Xc4nuE5uJRb6uWVMDFGddCw/lEmJAQpPGhyrg4MoWZe/IIJh3WBmGblzDaP0RFCPIS3 JvS3VVp9bwndpuNxBVxtcjxuFMSvj76mT/sRyPPUi+otbo/FA2Ylow9PImUoLPSzC3Di zhZw== X-Gm-Message-State: AOAM533kuC5tjYwTF+rWsjp+VXEA2bK/pw+WsqA3b3Z44O0AG9zx3Ky7 ENwEPfhmW5ANHXh+IgkbNldnR+3GNljaHw== X-Google-Smtp-Source: ABdhPJwkkJnXXbszNYJwZCJ2zvpfIUB9hBZEyJ9IwAqOdhscfc4KVLzqFdOGKpjLTCb9MWXq+FweWQ== X-Received: by 2002:a17:906:350d:: with SMTP id r13mr6139875eja.117.1602691375375; Wed, 14 Oct 2020 09:02:55 -0700 (PDT) Received: from localhost.localdomain (84-114-45-16.cable.dynamic.surfer.at. [84.114.45.16]) by smtp.gmail.com with ESMTPSA id o9sm1860009eds.5.2020.10.14.09.02.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2020 09:02:54 -0700 (PDT) From: Norbert Lange To: buildroot@buildroot.org Date: Wed, 14 Oct 2020 18:02:42 +0200 Message-Id: <20201014160243.616162-1-nolange79@gmail.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH v5] package/openrc: add patch to create /run/lock/subsys X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Norbert Lange , =?utf-8?b?TWljaGHFgiDFgXlzemN6ZWs=?= Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Together with changes to sysv/busybox init, this directory will already exist before any service scripts are run. Signed-off-by: Norbert Lange --- ...lso-create-run-lock-subsys-directory.patch | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 package/openrc/0006-Also-create-run-lock-subsys-directory.patch diff --git a/package/openrc/0006-Also-create-run-lock-subsys-directory.patch b/package/openrc/0006-Also-create-run-lock-subsys-directory.patch new file mode 100644 index 0000000000..58ea25d920 --- /dev/null +++ b/package/openrc/0006-Also-create-run-lock-subsys-directory.patch @@ -0,0 +1,29 @@ +From fd0e837f023c887b60934328f3e99c87b99ce568 Mon Sep 17 00:00:00 2001 +From: Norbert Lange +Date: Thu, 8 Oct 2020 11:54:40 +0200 +Subject: [PATCH] Also create /run/lock/subsys directory + +Buildroot service scripts regularly use this directory, so +create it in the most appropriate spot. + +Signed-off-by: Norbert Lange +--- + sh/init.sh.Linux.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/sh/init.sh.Linux.in b/sh/init.sh.Linux.in +index 222bbd3b..e56367c5 100644 +--- a/sh/init.sh.Linux.in ++++ b/sh/init.sh.Linux.in +@@ -85,7 +85,7 @@ fi + + [ -x /sbin/restorecon ] && /sbin/restorecon -rF /run + checkpath -d $RC_SVCDIR +-checkpath -d -m 0775 -o root:daemon /run/lock ++checkpath -d -m 0775 -o root:daemon /run/lock /run/lock/subsys + + # Try to mount xenfs as early as possible, otherwise rc_sys() will always + # return RC_SYS_XENU and will think that we are in a domU while it's not. +-- +2.28.0 +