seed hardware and software clock on install
following #398 (closed), where the issue have been resolved, but a lead for improvement has been suggested:
Quoting @ollieparanoid:
The post-install script of postmarketos-base should set /run/openrc/shutdowntime to the current timestamp. But I'm not sure if this is working, looking at the top post it seems that this did not work for @z3ntu? His post was from December 2019, and it says:
pmOS_root: Superblock last write time (Wed Dec 11 20:33:57 2019,
now = Fri Aug 23 10:49:01 2019) is in the future.
Why is "now" in August there? It looks like, we don't write /run/openrc/shutdowntime correctly. Maybe we should change the post-install script of postmarketos-base to run swclock --save and let it write the file.
We could profit from that in hwclock devices as well, and make sure they have got a good default date.