From: Pierre <pinaraf@pinaraf.info>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] package/skeleton-init-systemd: create a symlink /var/run to ../run
Date: Tue, 27 Feb 2018 22:24:51 +0100 [thread overview]
Message-ID: <37069250.uiOOhA36Tm@peanuts2> (raw)
In-Reply-To: <1519756674.25567.181.camel@impinj.com>
On Tuesday, February 27, 2018 7:37:54 PM CET Trent Piepho wrote:
> On Sun, 2018-02-25 at 20:16 +0100, Romain Naour wrote:
> > The file /usr/lib/tmpfiles.d/var.con will create automatically that
> >
> > > > symlink at bootup /var/run doesn't exist yet. But dbus creates, at
> > > > install time, the directory /var/run/dbus without taking care of
> > > > /var/run. So we end up with two different directories /run and
> > > > /var/run. This bug affects more or less all systemd-provided
> > > > utilities, including logind and systemd itself.
> > > >
> > > > This patch create the correct symlink run -> ../run when systemd
> > > > is used as init system.
> > >
> > > This doesn't work in the RO root case.
> >
> > Indeed, but I'm testing/fixing the RW case with this patch
> > (BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW).
>
> I should have said that differently. RO root has the same problem, but
> this link will not solve it.
>
> I believe the link:
> ln -sf ../../../../run $(TARGET_DIR)/usr/share/factory/var/run
>
> will fix the RO case. But of course does not work in the RW case.
>
> I can send a follow on patch to add this link for RO.
>
> But I wish there was some other method that could solve the problem for
> both RW and RO, without needing to add special cases like this link.
I'm new to buildroot but got hit by that bug and after reading this thread I
don't really understand why this would not work with RW.
It's quite dirty, but a link to ../../../{repeat?}/run will end up linking to
/run since /.. is a link to /
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180227/9df6d8ba/attachment.asc>
prev parent reply other threads:[~2018-02-27 21:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-22 22:10 [Buildroot] [PATCH] package/skeleton-init-systemd: create a symlink /var/run to ../run Romain Naour
2018-02-23 18:25 ` Trent Piepho
2018-02-24 18:15 ` Arnout Vandecappelle
2018-02-27 19:28 ` Trent Piepho
2018-02-25 19:16 ` Romain Naour
2018-02-27 18:37 ` Trent Piepho
2018-02-27 21:24 ` Pierre [this message]
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=37069250.uiOOhA36Tm@peanuts2 \
--to=pinaraf@pinaraf.info \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.