From: Trent Piepho <tpiepho@impinj.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/3] package/skeleton-systemd: invert factory logic
Date: Tue, 6 Mar 2018 01:56:34 +0000 [thread overview]
Message-ID: <1520301393.25567.314.camel@impinj.com> (raw)
In-Reply-To: <cd9e7fa23e9e4da9ccf59598d68413ba13cb00d3.1520183159.git.yann.morin.1998@free.fr>
On Sun, 2018-03-04 at 18:06 +0100, Yann E. MORIN wrote:
> Currently, we handle the factory by redirectoring /var with a symlink at
> build time, and with some trickery during the filesystem generation,
> depending on whether we need to remount the filesystem read-write or
> not.
>
> However, this is causing wquite some pain with latest systemd, now that
> they have moved their dbus socket to /run instead of /var/run.
>
> As such, trying to play tricks with /var/run as a symlink is difficult,
> because at times it is in .usr/share/factory/var/run (during build) and
> then it is in /var/run (at runtime). So a relative symlink is not
> possible. But an absolute symlink is not possible either, because we are
> installing out-pf-tree.
The symlink does work ok if the patches to fix it are applied. Both
the build time ${TARGET_DIR}/var/run and run time /var/run work.
However...
> We fix all this mess by making /var a real directory from the onset, so
> that we can use the runtime-expected layout even during the build.
>
> Then, during filesystem generation, we move /var away to the factory,
> and populate it as we used to do. This still requires a post-fs hook to
> restore /var after the filesystem generation.
I think this a better way. It was I was alluding to on IRC as a system
that wasn't tied to work-arounds for specific directories in var. But
I was troubled by...
> This leaves a situation that, should the filesystem generation fails,
> /var will be left in an inconsistent state. But that is not worse than
> what we already had anyway.
I wondered if there was a way to get fakeroot to also "fake" the
movement of the files in addition to modification of owner and group,
but it appears there is not. I do not think it would be impossible for
fakeroot to gain this ability.
next prev parent reply other threads:[~2018-03-06 1:56 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-04 17:06 [Buildroot] [PATCH 0/3] package/systemd: unbreak a few stuf Yann E. MORIN
2018-03-04 17:06 ` [Buildroot] [PATCH 1/3] package/skeleton-init-systemd: work around for /var/lib not populating Yann E. MORIN
2018-03-04 18:17 ` Adam Duskett
2018-03-04 20:24 ` Thomas Petazzoni
2018-03-04 20:29 ` Yann E. MORIN
2018-03-05 18:55 ` Trent Piepho
2018-03-04 17:06 ` [Buildroot] [PATCH 2/3] package/skeleton-systemd: invert factory logic Yann E. MORIN
2018-03-06 1:56 ` Trent Piepho [this message]
2018-03-04 17:06 ` [Buildroot] [PATCH 3/3] support/tests: enhance the runtime systemd tests Yann E. MORIN
2018-03-04 20:22 ` [Buildroot] [PATCH 0/3] package/systemd: unbreak a few stuf Peter Korsgaard
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=1520301393.25567.314.camel@impinj.com \
--to=tpiepho@impinj.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 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.