On Montag, 20. März 2017 16:11:10 CET Eric Curtin wrote: > Yeah "iburst" was all that this needed. It's perfect for my needs at > least. Haven't seen anything like that in my dracut scripts either. > Similar to Per, I may not be looking for the right thing. > > On 17 March 2017 at 12:14, Per Jessen <[email protected]> wrote: > > Alexander Graf wrote: > >> The way this usually gets handled in openSUSE is by reading the > >> unmount time of your root file system. There should be a script in > >> dracut that finds out when your rootfs was last unmounted and sets the > >> system time to that if the system time is bogus. > >> > >> I'm not quite sure why that doesn't kick in for you. Maybe it only > >> works on ext4? > > > > I looked through the dracut scripts (usr/lib/dracut), I can't find > > anything like that. Maybe I'm not looking for the right thing.
While ext filesystems have a mount time stamp in the superblock, at least btrfs has none, so the filesystems as time source is not always available. You may use systemd-timesyncd instead. It touches /var/lib/systemd/clock each NTP poll interval (i.e. starting with 32 seconds, exponential backoff up to 34 minutes), and uses the file timestamp on startup. Kind regards, Stefan-- To unsubscribe, e-mail: [email protected] To contact the owner, e-mail: [email protected]
