[Bug 1696981] Re: fixrtc is ineffective when there is no battery for the RTC

Alfonso Sanchez-Beato alfonso.sanchez-beato at canonical.com
Tue Sep 5 12:21:09 UTC 2017


@smb what I have seen is that devices lacking RTC battery tend to never
had a good date in the "last mount day" date of the root filesystem, as
when root is mounted the date is always near the epoch. The patch can
correct this, otherwise we would be getting the date systemd was built.

Of course this is not terribly accurate, but solves issues with
certificates/assertions that were deemed as not yet valid on first boot
if there was no network.

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1696981

Title:
  fixrtc is ineffective when there is no battery for the RTC

Status in initramfs-tools package in Ubuntu:
  Incomplete

Bug description:
  When there is no battery for the RTC, fixrtc is not able to find a
  good enough date. To fix the clock, this script is using the last time
  the root filesystem was mounted, but as that is done before there is
  any network, and as after a reboot/poweroff the RTC time is always
  reset (because time is not kept due to lack of battery), the mount
  time will never be good.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1696981/+subscriptions



More information about the Ubuntu-sponsors mailing list