Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] system/skeleton: make /var/run a symlink to /run
Date: Tue, 14 Jul 2020 15:14:59 +0200	[thread overview]
Message-ID: <20200714151459.6ee4ca7a@windsurf.home> (raw)
In-Reply-To: <20200629104749.46938-1-nolange79@gmail.com>

Hello Norbert,

On Mon, 29 Jun 2020 12:47:49 +0200
Norbert Lange <nolange79@gmail.com> wrote:

> 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

The commit log is a bit confusing here, especially when looking at the
patch. Indeed, we see you are *removing* code that creates /var/run as
a symlink to /run, but you're saying that you're making /var/run a
symlink to /run.

However, what really happens is that /var/run was already a symlink to
/run when the selected init system is systemd, but not with other init
systems. What your patch does is that it moves all init system to this
convention.

So perhaps a better commit title would be:

===

system/skeleton: always make /var/run a symlink to /run

While Buildroot was already making /var/run a symlink to /run when
systemd was selected as the init system, it was not the case with other
init systems.

However, FHS3 denotes /var/run as a compatibility directory, and new
systems should use /run. So let's switch to this convention regardless
of the init system being used.

===

Also, was there any specific motivation/issue for this change, or just
make things "nicer" ?

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

  parent reply	other threads:[~2020-07-14 13:14 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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=20200714151459.6ee4ca7a@windsurf.home \
    --to=thomas.petazzoni@bootlin.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