Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] /etc/localtime

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Mads Laursen <dossen+sgl AT daimi.au.dk>
  • To: sm-discuss <sm-discuss AT lists.ibiblio.org>
  • Subject: Re: [SM-Discuss] /etc/localtime
  • Date: Fri, 7 Nov 2003 13:09:01 +0100

On 06/11/03 00.29, Casey Harkins wrote:
>
>
> On Wed, 5 Nov 2003, Eric Sandall wrote:
> > I think it should remain a symlink, but make hwclock more intelligent, if
> > we
> > can. However, this might fix my problem, but I don't believe it would be a
> > 'correct' fix, as it happens without rebooting, unless hwclock is run via
> > cron,
> > but I don't have any cron entries for it? I think Hamish may have hit
> > upon it
> > with ntp being installed.
>
> I agree that it wouldn't be a "correct" fix, in fact more just a
> work-around. I don't see why hwclock would be running via cron. Out of
> curiosity are you running fcron? I've been experiencing my own strange
> time behavior with fcron.
>
> As for the symlink issue, I do think that a symlink is nicer, as it lets
> you easily see what timezone you have configured. Leaving the
> NEEDS="+local_fs" will work as long as /usr can be mounted. Another option
> suggested on the Yellow Dog Linux mailing list, was to copy -R
> /usr/share/zoneinfo onto / without /usr mounted. This way the symlink will
> work with or without /usr mounted. I don't see how this could be done
> automatically from within the glibc spell safely though.

How about something like:

mkdir -p SOME_DIR/root
mount --bind / SOME_DIR/root
if ! [ -d SOME_DIR/root/usr/share/zoneinfo ]; then
mkdir -p SOME_DIR/root/usr/share/zoneinfo
cp -rv /usr/share/zoneinfo/* SOME_DIR/root/usr/share/zoneinfo/
fi
umount SOME_DIR/root

AFAIK mount --bind binds the actual directory tree pointed to, without
regard for anything mounted ontop of it.

/dossen
--
Common sense is the collection of prejudices acquired by age eighteen.
-- Albert Einstein

Attachment: pgpInyWNlpkUZ.pgp
Description: PGP signature




Archive powered by MHonArc 2.6.24.

Top of Page