Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Norbert Lange <nolange79@gmail.com>
To: buildroot@buildroot.org
Cc: joseph.kogut@gmail.com, Norbert Lange <nolange79@gmail.com>,
	yann.morin.1998@free.fr, aduskett@gmail.com,
	maxime.hadjinlian@gmail.com
Subject: [Buildroot] [PATCH] package/skeleton-init-systemd: support /var/lock again
Date: Sun,  9 Jan 2022 12:01:30 +0100	[thread overview]
Message-ID: <20220109110132.3430-1-nolange79@gmail.com> (raw)

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

             reply	other threads:[~2022-01-09 11:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-09 11:01 Norbert Lange [this message]
2022-01-09 13:04 ` [Buildroot] [PATCH] package/skeleton-init-systemd: support /var/lock again Arnout Vandecappelle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220109110132.3430-1-nolange79@gmail.com \
    --to=nolange79@gmail.com \
    --cc=aduskett@gmail.com \
    --cc=buildroot@buildroot.org \
    --cc=joseph.kogut@gmail.com \
    --cc=maxime.hadjinlian@gmail.com \
    --cc=yann.morin.1998@free.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox