systemd time is in the future on boot forces fsck
techAdmin
Status: Site Admin
Joined: 26 Sep 2003
Posts: 3887
Location: East Coast, West Coast? I know it's one of them.
Reply Quote
https://forums.fedoraforum.org/showthread.php?303490-Superblock-last-write-time-is-in-the-future

Can't stop the systemd fsck, but this thread may help

check time against date:
:: Code ::
hwclock --show
clock -r # if you have this command
date


check systemd idea of time:

:: Code ::
# timedatectl status
      Local time: Tue 2015-03-10 00:50:06 CET
  Universal time: Mon 2015-03-09 23:50:06 UTC
        RTC time: Tue 2015-03-10 00:50:07
       Time zone: Europe/Madrid (CET, +0100)
     NTP enabled: yes
NTP synchronized: yes
 RTC in local TZ: yes
      DST active: no
 Last DST change: DST ended at
                  Sun 2014-10-26 02:59:59 CEST
                  Sun 2014-10-26 02:00:00 CET
 Next DST change: DST begins (the clock jumps one hour forward) at
                  Sun 2015-03-29 01:59:59 CET
                  Sun 2015-03-29 03:00:00 CEST

Warning: The system is configured to read the RTC time in the local time zone. This
         mode can not be fully supported. It will create various problems with time
         zone changes and daylight saving time adjustments. The RTC time is never updated,
         it relies on external facilities to maintain it. If at all possible, use
         RTC in UTC by calling 'timedatectl set-local-rtc 0'.


My system had that message, so I ran:

:: Code ::
timedatectl set-local-rtc 0


which changed the data to:

:: Code ::
# timedatectl status
                      Local time: Tue 2018-05-15 11:12:45 PDT
                  Universal time: Tue 2018-05-15 18:12:45 UTC
                        RTC time: Tue 2018-05-15 18:12:46
                       Time zone: US/Pacific (PDT, -0700)
       System clock synchronized: no
systemd-timesyncd.service active: yes
                 RTC in local TZ: no


:: Quote ::
I experimented a bit more and it seems simply copying /etc/adjtime to the initrd fixes the issue, so I'll report that as a possible solution too.

dracut --include /etc/adjtime /etc/adjtime --force


:: Quote ::
One final comment I also posted in the bug reports. If /etc/adjtime is not included in the initrd, which can easily be checked with lsinitrd, you can force it to be included automatically by creating a file named, for example, /etc/dracut.conf.d/adjtime.conf and making it have the following contents:

install_items+=/etc/adjtime

Back to top
Display posts from previous:   

All times are GMT - 8 Hours