All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dominik Menke <dom@digineo.de>
To: buildroot@busybox.net
Subject: [Buildroot] Possible conflict with systemd and e2fsprogs?
Date: Tue, 30 Apr 2019 12:23:23 +0200	[thread overview]
Message-ID: <6f2db71a-82fe-4995-878b-3783b7bc5d42@digineo.de> (raw)
In-Reply-To: <6824ef05-10eb-d45a-4dd7-0fc75173473e@mind.be>

On 4/29/19 10:37 PM, Arnout Vandecappelle wrote:
> On 29/04/2019 18:18, Dominik Menke wrote:
>> [??? 4.547439] systemd-fsck[94]: /dev/mmcblk0p2: Superblock last write time (Mon
>> Apr 29 17:37:11 2019,
>> [??? 4.551637] systemd-fsck[94]:???? now = Thu Feb 14 11:11:59 2019) is in the
>> future.
> 
>   My systemd-fu is not great, but it looks weird that now = somewhere in 2019 if
> you have no RTC. I believe fsck has code to ignore the time-in-future check if
> now ~ 1970.

The "now" date coincides with the commit date of 
https://github.com/systemd/systemd/commit/e62a7fea757f259eb330da5b6d3ab4ede46400a2. 
 From what I can gather, systemd-timesyncd claims to be responsible for 
setting the initial boot time. systemd-timesyncd.service(8) reads:

> /var/lib/systemd/timesync/clock
>     
> The modification time of this file indicates the timestamp of the
> last successful synchronization (or at least the systemd build date,
> in case synchronization was not possible).

However, after disabling systemd-timesyncd (in menuconfig) and a clean 
build, the date persists...

I'm now considering to permanently add fsck.mode=skip to the kernel 
command line. That'll restore the default behaviour for BR2 systems with 
systemd enabled and ext4 partitions (util-linux' fsck does not provide 
support for those).

My short term goal is to get to an A/B booting scheme anyway. I can then 
trigger fsck manually on the running system for the *other* root fs, 
instead of the *current* root fs.

I'm aware this is a "works for me" solution.

Again, thanks for your time and input!
Dominik

  reply	other threads:[~2019-04-30 10:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-25 18:15 [Buildroot] Possible conflict with systemd and e2fsprogs? Dominik Menke
2019-04-27 17:56 ` Arnout Vandecappelle
2019-04-27 21:20   ` Dominik Menke
2019-04-27 21:47     ` Arnout Vandecappelle
2019-04-29  9:01       ` Dominik Menke
2019-04-29 16:18         ` Dominik Menke
2019-04-29 20:37           ` Arnout Vandecappelle
2019-04-30 10:23             ` Dominik Menke [this message]
2019-04-27 18:08 ` Yann E. MORIN
2019-04-27 21:02   ` Dominik Menke

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=6f2db71a-82fe-4995-878b-3783b7bc5d42@digineo.de \
    --to=dom@digineo.de \
    --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.