Hi Thomas,

I can reproduce the problem you describe below.

The original rationale for the current behavior was to remove all of the
files from /usr/share/zoneinfo to save space in the packed image while
still attempting to preserve
the local time zone information.

The current approach is not working correctly, so we will have to revisit
the problem and try to invent a better solution.

Nate



From:   "THomas HUMMEL" <thomas.hum...@pasteur.fr>
To:     <xcat-user@lists.sourceforge.net>
Date:   11/22/2021 10:08 AM
Subject:        [EXTERNAL] Re: [xcat-user] packimage -m tar and /etc/localtime



Hello,

does anyone could reproduce the issue described below even with the
merged code ?
timedatectl after a stateless boot just doesn't like the link being
local to /etc and display no time zone

# timedatectl
                Local time: Mon 2021-11-22 14:52:00 UTC
            Universal time: Mon 2021-11-22 14:52:00 UTC
                  RTC time: Mon 2021-11-22 14:52:00
                 Time zone: n/a (UTC, +0000)
System clock synchronized: yes
               NTP service: active
           RTC in local TZ: no

Thanks for your help

--
Thomas HUMMEL

On 11/9/21 17:31, THomas HUMMEL wrote:
>
> On 11/9/21 16:18, THomas HUMMEL wrote:
>> Hello,
>>
>> I just saw (because I encountered the issue again today) the merged
code:
>>
>>
https://github.com/xcat2/xcat-core/pull/7032/commits/16ea67622b6971e83e8aa3edf0d4568b8d784bb8
$

>>
>> What is the reason for drifting from the standard way of directly
>> symlinking to /usr/share/... ? Because it can be in an exclude list ?
>> (in which case one can make an exclude exception for the locale he
wants)
>
> As a matter of fact it does not fix the issue with R.
>
> If /etc/localtime is a regular file OR if it is a symlink to
> ./Europe/Paris copied as in the commit
>
> R complains:
>
> Warning: ‘timedatectl’ indicates the non-existent timezone name ‘n/a’
> Warning: Your system is mis-configured: ‘/etc/localtime’ is not a symlink
> Warning: It is strongly recommended to set envionment variable TZ to
> ‘Europe/Paris
>
>   In these cases indeed, timedatectl actually indicates 'n/a'
>
> # timedatectl
>                 Local time: Tue 2021-11-09 16:00:17 UTC
>             Universal time: Tue 2021-11-09 16:00:17 UTC
>                   RTC time: Tue 2021-11-09 16:00:17
>                  Time zone: n/a (UTC, +0000)
> System clock synchronized: yes
>                NTP service: active
>            RTC in local TZ: no
>
> whereas it says
>
> # timedatectl
>                 Local time: Tue 2021-11-09 17:17:02 CET
>             Universal time: Tue 2021-11-09 16:17:02 UTC
>                   RTC time: Tue 2021-11-09 16:17:02
>                  Time zone: Europe/Paris (CET, +0100)
> System clock synchronized: yes
>                NTP service: active
>            RTC in local TZ: no
>
> when
>
> # ls -l /etc/localtime
> lrwxrwxrwx 1 root root 32 Nov  9 17:16 /etc/localtime ->
> /usr/share/zoneinfo/Europe/Paris
>
> Thanks
>
> --
> Thomas HUMMEL
>
>
>
> _______________________________________________
> xCAT-user mailing list
> xCAT-user@lists.sourceforge.net
>
https://lists.sourceforge.net/lists/listinfo/xcat-user
$

>


_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user



_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to