focal: $ pull-lp-source systemd 245.4-4ubuntu3.4 ... $ stat -c '%y' systemd-245.4/NEWS 2020-04-01 13:23:42.000000000 -0400
$ lxc launch --vm ubuntu:focal lp1878969-f ... $ lxc exec lp1878969-f systemctl disable systemd-timesyncd Removed /etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service. Removed /etc/systemd/system/dbus-org.freedesktop.timesync1.service. $ lxc stop lp1878969-f $ sudo date -s '1990-01-01' Mon Jan 1 00:00:00 UTC 1990 $ lxc start lp1878969-f $ lxc console lp1878969-f ... ubuntu@lp1878969-f:~$ dpkg -l systemd|grep systemd ii systemd 245.4-4ubuntu3.4 amd64 system and service manager ubuntu@lp1878969-f:~$ date Wed Apr 1 17:24:01 UTC 2020 >From https://launchpad.net/ubuntu/+source/systemd/245.4-4ubuntu3.5 " -- Ioanna Alifieraki <ioanna-maria.alifier...@canonical.com> Tue, 23 Feb 2021 00:18:57 +0000" $ sudo date -s '1990-01-01' Mon Jan 1 00:00:00 UTC 1990 $ lxc start lp1878969-f $ lxc console lp1878969-f ... ubuntu@lp1878969-f:~$ systemctl status systemd-timesyncd.service --no-pager ● systemd-timesyncd.service - Network Time Synchronization Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; disabled; vendor preset: enabled) Active: inactive (dead) Docs: man:systemd-timesyncd.service(8) ubuntu@lp1878969-f:~$ dpkg -l systemd|grep systemd ii systemd 245.4-4ubuntu3.5 amd64 system and service manager ubuntu@lp1878969-f:~$ date Tue Feb 23 00:19:42 UTC 2021 -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to systemd in Ubuntu. https://bugs.launchpad.net/bugs/1878969 Title: time-epoch never changes in SRUs Status in ubuntu-core-initramfs: Fix Released Status in systemd package in Ubuntu: Fix Released Status in systemd source package in Xenial: New Status in systemd source package in Bionic: Fix Committed Status in systemd source package in Focal: Fix Committed Bug description: [Impact] * Systems without hwclock come up with a fixed time epoch which is not updated in SRUs * Ideally booting with a newer built of systemd should move time epoch to be at least when systemd was last built. For example to the value of SOURCE_DATE_EPOCH. [Test Case] * Boot without network NTP or hwclock * Observe that the epoch is the same as the time when NEWS entry in the systemd source code was last touched. * Boot newer update of systemd, observe that the time epoch is at least 2020 [Regression Potential] * Bad epoch, may result in unable to perform TLS connections, validated GPG signatures, and snapd assertions. Changing epoch to be more recent is desired. Some machines may rely on the fact that "bionic" without hwclock always comes up in year 2018. But in practice that is incorrect thing to do. [Other Info] * By default option('time-epoch', type : 'integer', value : '-1', description : 'time epoch for time clients') in systemd is set to the modification time of the NEW entry time_epoch = run_command(stat, '-c', '%Y', NEWS).stdout().to_int() If available, it should be set to SOURCE_DATE_EPOCH=1585051767 value to be compliant with the https://reproducible- builds.org/docs/timestamps/ specification. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-core-initramfs/+bug/1878969/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp