Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/skeleton-init-systemd: support /var/lock again
@ 2022-01-09 11:01 Norbert Lange
  2022-01-09 13:04 ` Arnout Vandecappelle
  0 siblings, 1 reply; 2+ messages in thread
From: Norbert Lange @ 2022-01-09 11:01 UTC (permalink / raw)
  To: buildroot
  Cc: joseph.kogut, Norbert Lange, yann.morin.1998, aduskett,
	maxime.hadjinlian

systemd's own configuration file is not installed anymore,
as side effect of disabling sysv support.

the funtionality is added back in skeleton-init-systemd,
since this is a buildroot feature to support software expecting
this directories to exist, as well as trying to be similar to
other init systems.

Signed-off-by: Norbert Lange <nolange79@gmail.com>
---
 package/skeleton-init-systemd/legacy.conf              | 7 +++++++
 package/skeleton-init-systemd/skeleton-init-systemd.mk | 1 +
 2 files changed, 8 insertions(+)
 create mode 100644 package/skeleton-init-systemd/legacy.conf

diff --git a/package/skeleton-init-systemd/legacy.conf b/package/skeleton-init-systemd/legacy.conf
new file mode 100644
index 0000000000..0a5393408c
--- /dev/null
+++ b/package/skeleton-init-systemd/legacy.conf
@@ -0,0 +1,7 @@
+# Create legacy directories for buildroot
+# This is a subset of systemd's legacy.conf
+
+d /run/lock 0755 root root -
+d /run/lock/subsys 0755 root root -
+
+L /var/lock - - - - ../run/lock
diff --git a/package/skeleton-init-systemd/skeleton-init-systemd.mk b/package/skeleton-init-systemd/skeleton-init-systemd.mk
index 5d6b716f7a..1e212cc2f7 100644
--- a/package/skeleton-init-systemd/skeleton-init-systemd.mk
+++ b/package/skeleton-init-systemd/skeleton-init-systemd.mk
@@ -62,6 +62,7 @@ define SKELETON_INIT_SYSTEMD_INSTALL_TARGET_CMDS
 	mkdir -p $(TARGET_DIR)/srv
 	mkdir -p $(TARGET_DIR)/var
 	ln -s ../run $(TARGET_DIR)/var/run
+	install -D -m644 $(SKELETON_INIT_SYSTEMD_PKGDIR)/legacy.conf $(TARGET_DIR)/usr/lib/tmpfiles.d/legacy.conf
 	$(SKELETON_INIT_SYSTEMD_ROOT_RO_OR_RW)
 endef
 
-- 
2.34.1

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

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

* Re: [Buildroot] [PATCH] package/skeleton-init-systemd: support /var/lock again
  2022-01-09 11:01 [Buildroot] [PATCH] package/skeleton-init-systemd: support /var/lock again Norbert Lange
@ 2022-01-09 13:04 ` Arnout Vandecappelle
  0 siblings, 0 replies; 2+ messages in thread
From: Arnout Vandecappelle @ 2022-01-09 13:04 UTC (permalink / raw)
  To: Norbert Lange, buildroot
  Cc: joseph.kogut, yann.morin.1998, aduskett, maxime.hadjinlian



On 09/01/2022 12:01, Norbert Lange wrote:
> systemd's own configuration file is not installed anymore,
> as side effect of disabling sysv support.
> 
> the funtionality is added back in skeleton-init-systemd,
> since this is a buildroot feature to support software expecting
> this directories to exist, as well as trying to be similar to
> other init systems.
> 
> Signed-off-by: Norbert Lange <nolange79@gmail.com>

  Applied to master, thanks.

  Regards,
  Arnout

> ---
>   package/skeleton-init-systemd/legacy.conf              | 7 +++++++
>   package/skeleton-init-systemd/skeleton-init-systemd.mk | 1 +
>   2 files changed, 8 insertions(+)
>   create mode 100644 package/skeleton-init-systemd/legacy.conf
> 
> diff --git a/package/skeleton-init-systemd/legacy.conf b/package/skeleton-init-systemd/legacy.conf
> new file mode 100644
> index 0000000000..0a5393408c
> --- /dev/null
> +++ b/package/skeleton-init-systemd/legacy.conf
> @@ -0,0 +1,7 @@
> +# Create legacy directories for buildroot
> +# This is a subset of systemd's legacy.conf
> +
> +d /run/lock 0755 root root -
> +d /run/lock/subsys 0755 root root -
> +
> +L /var/lock - - - - ../run/lock
> diff --git a/package/skeleton-init-systemd/skeleton-init-systemd.mk b/package/skeleton-init-systemd/skeleton-init-systemd.mk
> index 5d6b716f7a..1e212cc2f7 100644
> --- a/package/skeleton-init-systemd/skeleton-init-systemd.mk
> +++ b/package/skeleton-init-systemd/skeleton-init-systemd.mk
> @@ -62,6 +62,7 @@ define SKELETON_INIT_SYSTEMD_INSTALL_TARGET_CMDS
>   	mkdir -p $(TARGET_DIR)/srv
>   	mkdir -p $(TARGET_DIR)/var
>   	ln -s ../run $(TARGET_DIR)/var/run
> +	install -D -m644 $(SKELETON_INIT_SYSTEMD_PKGDIR)/legacy.conf $(TARGET_DIR)/usr/lib/tmpfiles.d/legacy.conf
>   	$(SKELETON_INIT_SYSTEMD_ROOT_RO_OR_RW)
>   endef
>   
> 
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2022-01-09 13:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-09 11:01 [Buildroot] [PATCH] package/skeleton-init-systemd: support /var/lock again Norbert Lange
2022-01-09 13:04 ` Arnout Vandecappelle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox