Package: fake-hwclock
Version: 0.11
Severity: normal
Dear Maintainer,
Judging by these comments [1], fake-hwclock should run before fsck.
However, on a system without initrd, with fsck on root enabled in fstab,
systemd-fsck-root.service runs first.
On a system without an RTC, this may result in a lengthy and unnecessary
fsck run if the system thinks the last write or mount time is in the future.
May 17 19:27:19.908109 raspberrypi systemd-fsck[68]: e2fsck 1.43.4
(31-Jan-2017)
May 17 19:27:19.908109 raspberrypi systemd-fsck[68]: Superblock last
mount time (Thu May 17 18:53:33 2018,
May 17 19:27:19.908109 raspberrypi systemd-fsck[68]: now = Thu Nov 3
17:16:44 2016) is in the future.
May 17 19:27:19.908109 raspberrypi systemd-fsck[68]: Fix? yes
May 17 19:27:19.908109 raspberrypi systemd-fsck[68]: Superblock last
write time (Wed Apr 18 01:24:23 2018,
May 17 19:27:19.908109 raspberrypi systemd-fsck[68]: now = Thu Nov 3
17:16:44 2016) is in the future.
May 17 19:27:19.908109 raspberrypi systemd-fsck[68]: Fix? yes
May 17 19:27:19.908109 raspberrypi systemd-fsck[68]: Pass 1: Checking
inodes, blocks, and sizes
May 17 19:27:19.919007 raspberrypi systemd[1]: Starting udev Kernel
Device Manager...
May 17 19:27:20.146456 raspberrypi fake-hwclock[79]: Thu 17 May
19:27:19 UTC 2018
May 17 19:27:20.832099 raspberrypi systemd[1]: Started udev Kernel
Device Manager.
The issue is resolved if the service file's Before= line has
systemd-fsck-root.service:
Sep 10 14:39:38 serge-poehat fake-hwclock[91]: Mon 10 Sep 13:39:38 UTC
2018
...
Sep 10 14:39:38 serge-poehat systemd[1]: Started Create Static Device
Nodes in /dev.
Sep 10 14:39:38 serge-poehat systemd-fsck[125]: e2fsck 1.43.4
(31-Jan-2017)
Sep 10 14:39:38 serge-poehat systemd[1]: Starting udev Kernel Device
Manager...
Sep 10 14:39:38 serge-poehat systemd-fsck[125]: Superblock last mount
time is in the future.
Sep 10 14:39:38 serge-poehat systemd-fsck[125]: (by less than
a day, probably due to the hardware clock being incorrectly set)
Sep 10 14:39:38 serge-poehat systemd-fsck[125]: Superblock last write
time is in the future.
Sep 10 14:39:38 serge-poehat systemd-fsck[125]: (by less than
a day, probably due to the hardware clock being incorrectly set)
Sep 10 14:39:38 serge-poehat systemd-fsck[125]: rootfs: clean,
167411/477664 files, 1341219/1928192 blocks
Sep 10 14:39:38 serge-poehat systemd[1]: Started File System Check on
Root Device.
[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=782314;msg=10
-- System Information:
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 9.4 (stretch)
Release: 9.4
Codename: stretch
Architecture: armv7l
Kernel: Linux 4.14.52-v7+ (SMP w/4 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8),
LANGUAGE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages fake-hwclock depends on:
ii init-system-helpers 1.48
fake-hwclock recommends no packages.
Versions of packages fake-hwclock suggests:
ii cron [cron-daemon] 3.0pl1-128+deb9u1
pn ntp <none>