Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Norbert Lange <nolange79@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] system/skeleton: make /var/run a symlink to /run
Date: Mon, 29 Jun 2020 12:47:49 +0200	[thread overview]
Message-ID: <20200629104749.46938-1-nolange79@gmail.com> (raw)

both systemd and FHS3 denote /var/run as a compatibility directory,
new systems should use /run.

There seems to be little reason to not switch to the new FHS layout
with buildroot, and adding the compatibility symlink.

[1] - https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch05s13.html

Signed-off-by: Norbert Lange <nolange79@gmail.com>
---
 package/skeleton-init-systemd/skeleton-init-systemd.mk | 2 --
 system/skeleton/var/run                                | 1 +
 2 files changed, 1 insertion(+), 2 deletions(-)
 create mode 120000 system/skeleton/var/run

diff --git a/package/skeleton-init-systemd/skeleton-init-systemd.mk b/package/skeleton-init-systemd/skeleton-init-systemd.mk
index 5d6b716f7a..528cf43e61 100644
--- a/package/skeleton-init-systemd/skeleton-init-systemd.mk
+++ b/package/skeleton-init-systemd/skeleton-init-systemd.mk
@@ -60,8 +60,6 @@ endif
 define SKELETON_INIT_SYSTEMD_INSTALL_TARGET_CMDS
 	mkdir -p $(TARGET_DIR)/home
 	mkdir -p $(TARGET_DIR)/srv
-	mkdir -p $(TARGET_DIR)/var
-	ln -s ../run $(TARGET_DIR)/var/run
 	$(SKELETON_INIT_SYSTEMD_ROOT_RO_OR_RW)
 endef
 
diff --git a/system/skeleton/var/run b/system/skeleton/var/run
new file mode 120000
index 0000000000..84ba55b912
--- /dev/null
+++ b/system/skeleton/var/run
@@ -0,0 +1 @@
+../run
\ No newline at end of file
-- 
2.27.0

             reply	other threads:[~2020-06-29 10:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-29 10:47 Norbert Lange [this message]
2020-06-29 10:52 ` [Buildroot] [PATCH] system/skeleton: make /var/run a symlink to /run Norbert Lange
2020-07-14 13:14 ` Thomas Petazzoni
2020-07-14 13:35   ` Norbert Lange
2020-07-14 13:52     ` Thomas Petazzoni
2020-07-14 14:22       ` Norbert Lange
2020-07-15 13:43         ` Thomas Petazzoni
2020-07-15 13:53           ` Norbert Lange
2020-07-15 15:38             ` Thomas Petazzoni
2020-07-16  9:42               ` Norbert Lange

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=20200629104749.46938-1-nolange79@gmail.com \
    --to=nolange79@gmail.com \
    --cc=buildroot@busybox.net \
    /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