All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Alexander A. Filippov" <a.filippov@yadro.com>
To: William Kennington <wak@google.com>
Cc: OpenBMC Development <openbmc@lists.ozlabs.org>
Subject: Re: Alternative to the filesystem overlay
Date: Wed, 21 Aug 2019 10:28:19 +0300	[thread overview]
Message-ID: <20190821072819.GA20631@bbwork.lan> (raw)
In-Reply-To: <CAPnigK=N9o6HzZCeJ-g1uWiLeRFXM84bF+Pq63YoJAz8SEdstA@mail.gmail.com>

On Tue, Aug 20, 2019 at 11:00:25AM -0700, William Kennington wrote:
> Sounds like this is just a data schema update type of issue, where you
> just need a service to run at first update boot and upgrade the files
> as expected by the change.
> 
> We could probably do this with systemd services that are
> ConditionNeedsUpdate= and
> https://www.freedesktop.org/software/systemd/man/systemd-update-done.service.html
> 

Yes, it looks like a good solution. I will try it.
Thanks for the tip.

> I'd prefer to see us move to a mostly immutable filesystem with
> symlinks that map into a rwfs for specific files / directories we
> expect to mutate at runtime. I don't think we should do any smart
> types of writeback caching at the filesystem level as that will just
> lead to confusion about persistence that is hard to debug. Not to
> mention tools like rsync don't guarantee atomic snapshotting during
> the copy for file consistency. Our applications should be designed in
> such a way that they are always consistent on disk. Ex. writing text
> files should be done to a temporary, then moved over the old one. That
> way the update is atomic and we don't have partially written files.
> 

Regards,
Alexander

  reply	other threads:[~2019-08-21  7:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-15 17:38 Alternative to the filesystem overlay Adriana Kobylak
2019-08-15 18:43 ` Andrew Geissler
2019-08-16  9:09 ` Alexander A. Filippov
2019-08-20 18:00   ` William Kennington
2019-08-21  7:28     ` Alexander A. Filippov [this message]
2019-08-21  0:56   ` Terry Duncan
2019-08-21  7:09     ` Alexander A. Filippov

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=20190821072819.GA20631@bbwork.lan \
    --to=a.filippov@yadro.com \
    --cc=openbmc@lists.ozlabs.org \
    --cc=wak@google.com \
    /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.