Skip to content
  • Yann E. MORIN's avatar
    system: require a timezone to be set · e7e526e9
    Yann E. MORIN authored
    
    
    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: default avatar"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: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
    e7e526e9