Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] system/skeleton: make /var/run a symlink to /run
@ 2020-06-29 10:47 Norbert Lange
  2020-06-29 10:52 ` Norbert Lange
  2020-07-14 13:14 ` Thomas Petazzoni
  0 siblings, 2 replies; 10+ messages in thread
From: Norbert Lange @ 2020-06-29 10:47 UTC (permalink / raw)
  To: buildroot

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

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

end of thread, other threads:[~2020-07-16  9:42 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-29 10:47 [Buildroot] [PATCH] system/skeleton: make /var/run a symlink to /run Norbert Lange
2020-06-29 10:52 ` 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

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