From: "C. Ray Ng" <crn1@cornell.edu>
Subject: Re: Clock starts up with wrong date.
Date: 1998/11/02 [thread overview]
Message-ID: <363DEEAF.9A2237C6@cornell.edu> (raw)
In-Reply-To: 363A876F.167E@digital.com
Jay A Estabrook wrote:
>
> NOTE: the below is true for *ALL* Linux/Alpha platforms.
>
> ---------------------------------------------------------
>
> ARC console and SRM console keep dates in the time-of-year (TOY) clock
> in slightly different formats (actually, only the "year" field differs).
>
> The "/sbin/clock" binary normally expects the format which SRM uses; you
> can, however, tell it to expect ARC format instead, using the "-A" flag.
> Thus, to read the clock when its kept in ARC format, say "clock -r -A",
> and to write it, "clock -w -A". If its not written in the expected
> format,
> the console (ARC or SRM) will prolly complain about it the next time it
> has a chance... :-\
>
> The best way to ensure you're using the correct format, is to set the
> date
> via the console's date-setting facility; under ARC, it's a menu item
> some
> place, under SRM it's a command (IIRC; try "help date").
>
> Then you must ensure that the "clock" call in the RH script
> /etc/rc.d/rc.sysconfig KNOWS WHAT FORMAT TO READ THE TOY IN!!!!
>
The problem is that the RH install/update scripts ask the users what
the clock format to use ONLY at the end of installation. All of us
using ARC clock would have the time stamp wrong all over the places
by then. A lot of us wrote small script/program to reset the year
afterward and hope that one day RedHat would fix it! It didn't for
RH 4.0, 4.1, 4.2, 5.0 and 5.1.
But we can't fix those already in the RPM database, nor for example,
the time in the /proc directory. It breaks some other tools that
compares time stamp for updates, sanitary check etc.
Is it posssible to detect the clock format somehow, or RedHat
installation script be changed to ask the users before it starts
to write any files?
Is RedHat watching this thread?
> If you're using ARC console to boot MILO/kernel, do:
>
> 1. running RH 4.1, make sure /etc/sysconfig/clock contains:
>
> CLOCKMODE="ARC"
>
> 2. running RH 4.2, or later, make sure /etc/sysconfig/clock contains
> (at least):
>
> ARC=true
>
> Now, If you're using SRM console to directly boot a kernel, then:
>
> 1. RH 4.1, same file, set CLOCKMODE=""
>
> 2. RH 4.2, or later, same file, set ARC=false
>
> Refer to /etc/rc.d/rc.sysconfig for details about how the above are used
> to call "clock" with the appropriate arguments.
>
> --Jay++
--
C. Ray Ng Tel: (607) 255-4882
Wilson Synchrotron Lab Fax: (607) 255-8062
Cornell University Internet: crn1@cornell.edu
Ithaca, NY 14853 http://www.lns.cornell.edu
next prev parent reply other threads:[~1998-11-02 5:00 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-08-13 4:00 Clock starts up with wrong date John Walstra
1998-08-14 4:00 ` G. Hugh SONG
1998-08-16 4:00 ` Adam C. Powell
1998-08-17 4:00 ` cekim
1998-08-18 4:00 ` John Walstra
1998-08-19 4:00 ` cekim
1998-08-24 4:00 ` chitm
1998-08-25 4:00 ` John Walstra
1998-09-29 4:00 ` juhana paavola
1998-09-29 4:00 ` Raymond P Chudzinski
1998-09-29 4:00 ` Steve Peltz
1998-10-20 4:00 ` naegele
1998-10-20 4:00 ` Reinhard Meyer
1998-10-22 4:00 ` Peter
1998-10-26 5:00 ` naegele
1998-10-29 5:00 ` wbonner
1998-10-30 5:00 ` Jay A Estabrook
1998-11-02 5:00 ` C. Ray Ng [this message]
1998-11-02 5:00 ` Robert Harley
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox