Re: [systemd-devel] date/time set to epoch when using readonly rootfs

2020-10-23 Thread Lennart Poettering
On Fr, 23.10.20 10:37, Belisko Marek (marek.beli...@gmail.com) wrote: > > > Sorry I mixed up things. Can you pls guide where can I find code which > > > set date/time from timestamp? Thanks > > > > This is the stuff PID 1 calls during earliest boot: > > > >

Re: [systemd-devel] date/time set to epoch when using readonly rootfs

2020-10-23 Thread Belisko Marek
On Thu, Oct 22, 2020 at 12:57 PM Lennart Poettering wrote: > > On Do, 22.10.20 11:53, Belisko Marek (marek.beli...@gmail.com) wrote: > > > > Hmm? this service has nothing to do with epoch/clock setting. It's > > > used for systems that have a "reboot-for-update" mode. > > > > Sorry I mixed up

Re: [systemd-devel] date/time set to epoch when using readonly rootfs

2020-10-22 Thread Lennart Poettering
On Do, 22.10.20 11:53, Belisko Marek (marek.beli...@gmail.com) wrote: > > Hmm? this service has nothing to do with epoch/clock setting. It's > > used for systems that have a "reboot-for-update" mode. > > Sorry I mixed up things. Can you pls guide where can I find code which > set date/time from

Re: [systemd-devel] date/time set to epoch when using readonly rootfs

2020-10-22 Thread Belisko Marek
On Thu, Oct 22, 2020 at 11:51 AM Lennart Poettering wrote: > > On Do, 22.10.20 11:47, Belisko Marek (marek.beli...@gmail.com) wrote: > > > On Thu, Oct 22, 2020 at 10:52 AM Lennart Poettering > > wrote: > > > > > > On Mi, 21.10.20 22:13, Belisko Marek (marek.beli...@gmail.com) wrote: > > > > > >

Re: [systemd-devel] date/time set to epoch when using readonly rootfs

2020-10-22 Thread Lennart Poettering
On Do, 22.10.20 11:47, Belisko Marek (marek.beli...@gmail.com) wrote: > On Thu, Oct 22, 2020 at 10:52 AM Lennart Poettering > wrote: > > > > On Mi, 21.10.20 22:13, Belisko Marek (marek.beli...@gmail.com) wrote: > > > > > Hi, > > > > > > I'm facing a strange issue. When I boot system using

Re: [systemd-devel] date/time set to epoch when using readonly rootfs

2020-10-22 Thread Belisko Marek
On Thu, Oct 22, 2020 at 10:52 AM Lennart Poettering wrote: > > On Mi, 21.10.20 22:13, Belisko Marek (marek.beli...@gmail.com) 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 > >

Re: [systemd-devel] date/time set to epoch when using readonly rootfs

2020-10-22 Thread Lennart Poettering
On Mi, 21.10.20 22:13, Belisko Marek (marek.beli...@gmail.com) 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

Re: [systemd-devel] date/time set to epoch when using readonly rootfs

2020-10-22 Thread Belisko Marek
On Thu, Oct 22, 2020 at 7:58 AM Tomasz Torcz 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

Re: [systemd-devel] date/time set to epoch when using readonly rootfs

2020-10-21 Thread Tomasz Torcz
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

[systemd-devel] date/time set to epoch when using readonly rootfs

2020-10-21 Thread Belisko Marek
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