Hi,

I had an issue with the local time on my astlinux box reporting in UTC
after the upgrade. Previously it was in PST/PDT. I read from the
release notes that TZ_TIMEZONE is no longer required, but I had
problems getting the timezone right.

In the end this is what I had to do:

1. edit /etc/rc and comment out the following:

 #uclibc style TZ support
  #if [ -z "$TZ_TIMEZONE" -a -f /etc/localtime ]; then
  #  TZ_TIMEZONE=$(tail -n1 /etc/localtime)
  #fi

What was happening here is that the env variable $TZ_TIMEZONE didn't
exist after a reboot, and because /etc/localtime points to a valid
file, I was getting the following set:
pbx ~ # tail -n1 /etc/localtime
??eGY?e턠g';?g?f?i?i?H?j???k?e l?mvG n??oV) p??q65ԐV?: X?X? Y??Z??[޵\??
]??^d? _?y`Mޠa???b-??cgw?d/??EDm?E?? G-?Gӵ I
                                                  ro?s? tO?t?
?v8??v??x??x?͠y???z???{?f?|~??}?H?~^s??*????????????????

                                                PDTPSTPWTPPTpbx ~ #

2. What I did was to write the file /mnt/kd/TZ with the following content:

PST8PDT,M3.2.0/2,M11.1.0/2

and then /etc/rc will copy /mnt/kd/TZ to /tmp/etc/TZ as per:

if [ -n "$TZ_TIMEZONE" ]; then
    echo "$TZ_TIMEZONE" > /tmp/etc/TZ
  elif [ -f /mnt/kd/TZ ]; then
    cp /mnt/kd/TZ /tmp/etc/TZ
  elif [ -f /stat/etc/TZ ]; then
    cp /stat/etc/TZ /tmp/etc/TZ
  fi

3. The last part was to put in symlink for /etc/TZ pointing to
/tmp/etc/TZ and I fixed the problem.

Am I missing something here or is this problem with /etc/rc incorrect?
Having TZ_TIMEZONE in /mnt/kd/rc.local doesn't make any difference. Is
this a bug?

Thanks

Matt

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to 
pay...@krisk.org.

Reply via email to