[systemd-devel] [systemd-level]: how to change default timezone in systemd code?

Silvio Knizek killermoehre at gmx.net
Wed Apr 29 13:27:46 UTC 2020


Am Mittwoch, den 29.04.2020, 20:31 +0800 schrieb www:
> Dear All,
>
> I want to change the default timezone in systemd, when it first starts, it shows the time zone I want. How can I modify the code in systemd to implement the function?
>
> thanks,
> Byron
Hi,

the default timezone is just the symlink /etc/localtime to
../usr/share/zoneinfo/your/timezone
There is no magic behind this. It can be easy automated and pre-
configured.
You can use systemd-firstboot to set the timezone, too.

BR
Silvio



More information about the systemd-devel mailing list