Re: date/time set to epoch when using readonly rootfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Oct 22, 2020 at 7:58 AM Tomasz Torcz <tomek@xxxxxxxxxxxxxx> wrote:
>
> On Wed, Oct 21, 2020 at 10:13:10PM +0200, Belisko Marek wrote:
> > Hi,
> >
> > I'm facing a strange issue. When I boot system using systemd (244.3)
> > and in one service I'm generating some certificates. When checking
> > them I'm getting the result that the certificate was created 1.1.1970
> > which is invalid. I can wait until I get a network connection and only
> > then create certificates but I have only issues that some files are
> > created and I'm getting date/time creation also epoch. Shouldn't it be
> > the date/time of build? Can this be caused somehow by using read only
> > rootfs? Thanks a lot for any pointers.
>
>   Waiting for network is probably a wrong think to do. You want
> After=time-sync.target (see man systemd.special). Of course you need
> something to provide this target.  Do you have
> systemd-timesyncd.service* enabled?
Yes I'm using systemd-timesyncd service to sync date/time.
Any idea why build date/time is not used if not yet synced?
>
> * it's systemd's implementation of SNTP. Also tries to set system time to at
> least time of last shutdown.

Thanks,

marek

>
>
> --
> Tomasz Torcz               “Never underestimate the bandwidth of a station
> tomek@xxxxxxxxxxxxxx        wagon filled with backup tapes.”  — Jim Gray
>
> _______________________________________________
> systemd-devel mailing list
> systemd-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.freedesktop.org/mailman/listinfo/systemd-devel
_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux