buildroot.busybox.net archive mirror
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2] package/openrc: add patch to create /run/lock/subsys
@ 2022-01-09 11:05 Norbert Lange
  2022-01-09 13:12 ` Arnout Vandecappelle
  2022-01-09 14:49 ` Arnout Vandecappelle
  0 siblings, 2 replies; 4+ messages in thread
From: Norbert Lange @ 2022-01-09 11:05 UTC (permalink / raw)
  To: buildroot; +Cc: Norbert Lange, Michał Łyszczek

Together with changes to sysv/busybox init, this directory
will already exist on all init systems before any service
scripts are run.

Signed-off-by: Norbert Lange <nolange79@gmail.com>
---
v1->v2:
*   refresh patch
---
 ...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..cf592a88b0
--- /dev/null
+++ b/package/openrc/0006-Also-create-run-lock-subsys-directory.patch
@@ -0,0 +1,29 @@
+From 49e5929b468f604d80a0c04a6ce78eb96ca36090 Mon Sep 17 00:00:00 2001
+From: Norbert Lange <nolange79@gmail.com>
+Date: Sun, 9 Jan 2022 00:22:40 +0100
+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 <nolange79@gmail.com>
+---
+ 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 e8afc1fb..662ab223 100644
+--- a/sh/init.sh.Linux.in
++++ b/sh/init.sh.Linux.in
+@@ -82,7 +82,7 @@ elif ! mountinfo -q /run; then
+ fi
+ 
+ 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.34.1
+
-- 
2.34.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [Buildroot] [PATCH v2] package/openrc: add patch to create /run/lock/subsys
  2022-01-09 11:05 [Buildroot] [PATCH v2] package/openrc: add patch to create /run/lock/subsys Norbert Lange
@ 2022-01-09 13:12 ` Arnout Vandecappelle
  2022-01-09 23:52   ` michal.lyszczek
  2022-01-09 14:49 ` Arnout Vandecappelle
  1 sibling, 1 reply; 4+ messages in thread
From: Arnout Vandecappelle @ 2022-01-09 13:12 UTC (permalink / raw)
  To: Norbert Lange, buildroot; +Cc: Michał Łyszczek



On 09/01/2022 12:05, Norbert Lange wrote:
> Together with changes to sysv/busybox init, this directory
> will already exist on all init systems before any service
> scripts are run.
> 
> Signed-off-by: Norbert Lange <nolange79@gmail.com>

  Applied to master, thanks.

  Normally we require patches to be upstreamed first, but there are already 
plenty of other patches that haven't been sent upstream. It could also be a bit 
buildroot-specific (though I think the subsys is there because some packages 
actually use that directory).

  Still, Michał, do you think this patch would be acceptable upstream? Obviously 
not in its current form since upstream has group uucp rather than daemon.

  Regards,
  Arnout

> ---
> v1->v2:
> *   refresh patch
> ---
>   ...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..cf592a88b0
> --- /dev/null
> +++ b/package/openrc/0006-Also-create-run-lock-subsys-directory.patch
> @@ -0,0 +1,29 @@
> +From 49e5929b468f604d80a0c04a6ce78eb96ca36090 Mon Sep 17 00:00:00 2001
> +From: Norbert Lange <nolange79@gmail.com>
> +Date: Sun, 9 Jan 2022 00:22:40 +0100
> +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 <nolange79@gmail.com>
> +---
> + 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 e8afc1fb..662ab223 100644
> +--- a/sh/init.sh.Linux.in
> ++++ b/sh/init.sh.Linux.in
> +@@ -82,7 +82,7 @@ elif ! mountinfo -q /run; then
> + fi
> +
> + 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.34.1
> +
> 
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Buildroot] [PATCH v2] package/openrc: add patch to create /run/lock/subsys
  2022-01-09 11:05 [Buildroot] [PATCH v2] package/openrc: add patch to create /run/lock/subsys Norbert Lange
  2022-01-09 13:12 ` Arnout Vandecappelle
@ 2022-01-09 14:49 ` Arnout Vandecappelle
  1 sibling, 0 replies; 4+ messages in thread
From: Arnout Vandecappelle @ 2022-01-09 14:49 UTC (permalink / raw)
  To: Norbert Lange, buildroot; +Cc: Michał Łyszczek



On 09/01/2022 12:05, Norbert Lange wrote:
> Together with changes to sysv/busybox init, this directory
> will already exist on all init systems before any service
> scripts are run.
> 
> Signed-off-by: Norbert Lange <nolange79@gmail.com>

  Applied to master, thanks.

  Regards,
  Arnout

> ---
> v1->v2:
> *   refresh patch
> ---
>   ...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..cf592a88b0
> --- /dev/null
> +++ b/package/openrc/0006-Also-create-run-lock-subsys-directory.patch
> @@ -0,0 +1,29 @@
> +From 49e5929b468f604d80a0c04a6ce78eb96ca36090 Mon Sep 17 00:00:00 2001
> +From: Norbert Lange <nolange79@gmail.com>
> +Date: Sun, 9 Jan 2022 00:22:40 +0100
> +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 <nolange79@gmail.com>
> +---
> + 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 e8afc1fb..662ab223 100644
> +--- a/sh/init.sh.Linux.in
> ++++ b/sh/init.sh.Linux.in
> +@@ -82,7 +82,7 @@ elif ! mountinfo -q /run; then
> + fi
> +
> + 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.34.1
> +
> 
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Buildroot] [PATCH v2] package/openrc: add patch to create /run/lock/subsys
  2022-01-09 13:12 ` Arnout Vandecappelle
@ 2022-01-09 23:52   ` michal.lyszczek
  0 siblings, 0 replies; 4+ messages in thread
From: michal.lyszczek @ 2022-01-09 23:52 UTC (permalink / raw)
  To: Arnout Vandecappelle; +Cc: Norbert Lange, buildroot


[-- Attachment #1.1: Type: text/plain, Size: 1267 bytes --]

On 2022-01-09 14:12:16, Arnout Vandecappelle wrote:
> 
> 
> On 09/01/2022 12:05, Norbert Lange wrote:
> > Together with changes to sysv/busybox init, this directory
> > will already exist on all init systems before any service
> > scripts are run.
> > 
> > Signed-off-by: Norbert Lange <nolange79@gmail.com>
> 
>  Applied to master, thanks.
> 
>  Normally we require patches to be upstreamed first, but there are already
> plenty of other patches that haven't been sent upstream. It could also be a
> bit buildroot-specific (though I think the subsys is there because some
> packages actually use that directory).
> 
>  Still, Michał, do you think this patch would be acceptable upstream?
> Obviously not in its current form since upstream has group uucp rather than
> daemon.


I think it won't be accepted by upstream. Seems that openrc does
not use /var/lock/subsys anywhere, nor does Gentoo. I also think that
/var/lock/susbsys is used mainly by redhat/rpm packages with plain
rc.d scripts. So in that case this rather seem like buildroot specific
change and is not really related to openrc, thus I don't see why
openrc would commit this patch.

But bear in mind, I am not a Gentoo nor openrc developer, so that
might not be true.

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 150 bytes --]

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-01-10  0:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-09 11:05 [Buildroot] [PATCH v2] package/openrc: add patch to create /run/lock/subsys Norbert Lange
2022-01-09 13:12 ` Arnout Vandecappelle
2022-01-09 23:52   ` michal.lyszczek
2022-01-09 14:49 ` Arnout Vandecappelle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).