mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-10 00:04:06 -09:00
system: require a timezone to be set
Even though no timezone implicitly means UTC, systemd is not all that happy when it does not have a timezone set. This is all fine on a RW filesystem because systemd will create a symlink on its own (to Etc/UTC), but not so much on a RO filesystem, causing all kind of issues at boot time (up to the point that the system is unusable). We fix that by requiring that the timezone is actually set. The check is done by verifying that the timezone file is an actual file; if not set, the test would find a directory and would thus fail. Update the help entry accordingly. Also fix indentation in tzdata. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Richard Braun <rbraun@sceen.net> Cc: Alexandre Belloni <alexandre.belloni@free-electrons.com> Cc: Martin Bark <martin@barkynet.com> Cc: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
9e057861cb
commit
e7e526e910
@@ -448,15 +448,13 @@ config BR2_TARGET_LOCALTIME
|
||||
help
|
||||
The time zone to install as the default local time, expressed as a
|
||||
tzdata location, such as:
|
||||
Etc/UTC (the default)
|
||||
GMT
|
||||
Europe/Paris
|
||||
America/New_York
|
||||
Pacific/Wallis
|
||||
...
|
||||
|
||||
If empty, no local time will be set, and the dates will be
|
||||
expressed in UTC.
|
||||
|
||||
endif # BR2_TARGET_TZ_INFO
|
||||
|
||||
config BR2_ROOTFS_USERS_TABLES
|
||||
|
||||
Reference in New Issue
Block a user