From: Peter Korsgaard <peter@korsgaard.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2] Makefile: Update mtime of $(TARGET_DIR)/usr in target-finalize
Date: Thu, 03 May 2018 23:26:39 +0200 [thread overview]
Message-ID: <874ljoctww.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <20180430171411.21920-1-chris.lesiak@licor.com> (Chris Lesiak's message of "Mon, 30 Apr 2018 12:14:11 -0500")
>>>>> "Chris" == Chris Lesiak <chris.lesiak@licor.com> writes:
> The systemd ConditionNeedsUpdate option is useful when offline updates
> of the vendor operating system resources in /usr require updating of
> /etc or /var on the next following boot.
> Two examples of services making use of this option are
> systemd-hwdb-update.service and systemd-sysusers.service.
> ConditionNeedsUpdate=/etc will be true if the mtime of /etc/.updated
> is older than the mtime of /usr. After services conditional on
> ConditionNeedsUpdate have run, systemd-update-done.service will
> synch the mtime of /usr to /etc/.updated so that the condition will
> be false on subsequent boots.
> For systems with writable /usr partitions where updates are done to
> the running system, the update program will touch /usr as a final step.
> But with Buildroot, where updates are often done by dumping a new
> image onto the device, and where /usr is on a filesystem mounted
> read-only, touching /usr as part of the update process is not practical.
> Instead, it should be done a build time.
> For testers, please note that systemd-update-done in v234 added a
> regression where the mtime of /etc/.updated is set to the current time
> instead of the mtime or /usr. This will be fixed in v239.
> For more details, see:
> http://0pointer.de/public/systemd-man/systemd.unit.html
> http://0pointer.de/public/systemd-man/systemd-update-done.service.html
> Signed-off-by: Chris Lesiak <chris.lesiak@licor.com>
> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> ---
> Changed v1 --> v2
> - Provide a more detailed commit message.
Committed to 2018.02.x, thanks.
--
Bye, Peter Korsgaard
prev parent reply other threads:[~2018-05-03 21:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-16 15:33 [Buildroot] [PATCH] Makefile: Update mtime of $(TARGET_DIR)/usr Chris Lesiak
2018-04-16 20:18 ` Yann E. MORIN
2018-04-16 21:27 ` Chris Lesiak
2018-04-22 21:37 ` Yann E. MORIN
2018-04-24 18:56 ` Chris Lesiak
2018-04-28 20:00 ` Yann E. MORIN
2018-04-30 17:14 ` [Buildroot] [PATCH v2] Makefile: Update mtime of $(TARGET_DIR)/usr in target-finalize Chris Lesiak
2018-05-03 20:13 ` Thomas Petazzoni
2018-05-03 21:26 ` Peter Korsgaard [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=874ljoctww.fsf@dell.be.48ers.dk \
--to=peter@korsgaard.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.