package/openrc: add patch to create /run/lock/subsys
PATCH v5 1/1 package/openrc: add patch to create /run/lock/subsys
Together with changes to sysv/busybox init, this directory will already exist before any service scripts are run.
--- ...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
package/openrc/0006-Also-create-run-lock-subsys-directory.patch new file +29 -0
@@ -0,0 +1,29 @@ +From fd0e837f023c887b60934328f3e99c87b99ce568 Mon Sep 17 00:00:00 2001 +From: Norbert Lange <[email protected]> +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 <[email protected]> +--- + 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 +
Signature · 1 line
2.28.0
PATCH v5 1/1 package/openrc: add patch to create /run/lock/subsys
Actually ignore this. Sent wrong patch (twice today)
Norbert Lange <[email protected]> schrieb am Mi., 14. Okt. 2020, 18:02:
Quoted 48 lines
Together with changes to sysv/busybox init, this directory will already exist before any service scripts are run.
Signed-off-by Norbert Lange <[email protected]>--- ...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.patchdiff --git
a/package/openrc/0006-Also-create-run-lock-subsys-directory.patchb/package/openrc/0006-Also-create-run-lock-subsys-directory.patchnew file mode 100644
index 0000000000..58ea25d920package/openrc/0006-Also-create-run-lock-subsys-directory.patch new file +29
-1@@ -0,0 +1,29 @@ +From fd0e837f023c887b60934328f3e99c87b99ce568 Mon Sep 17 00:00:00 2001 +From: Norbert Lange <[email protected]> +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 <[email protected]> +--- + 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 + --
Quoted 3 lines
2.28.0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20201014/a0dd0d31/attachment.html>