> Date: Wed, 01 Oct 2014 12:08:54 +0100
> From: [email protected] (akhiezer)
> To: LFS Support List <[email protected]>
> Subject: Re: [lfs-support] issue with 6.9.2. Configuring Glibc - localtime
>
> > From: Alexey Orishko <[email protected]>
> >
> > While using LFS system I found one problem related to recommendations in ch.
> > 6.9.2. Configuring Glibc (ch. number from devel book):
> > it is impossible for C-application (or bash script) to track down
> > timezone/location if original file is copied to /etc/localtime.
> >
>
>
> Do you mean that it's not easy for progs to know which original file
> had been copied over to /etc/localtime ? If yes, then ref e.g. 
> '/etc/localtime-copied-from' symlink below.
>
>
> > I would recommend to change suggestion in the book from copying to
> > making a symbolic link, thus allowing to use readlink(3) to track down
> > an original file:
> >
> > "Then create the /etc/localtime file by running:
> > ln -sf /usr/share/zoneinfo/<xxx> /etc/localtime"
> >
>
>
> Some folks have e.g.:
> ==
> lrwxrwxrwx 1 root root   33 [...] /etc/localtime-copied-from -> 
> /usr/share/zoneinfo/Europe/London
> -rw-r--r-- 7 root root 3661 [...] /usr/share/zoneinfo/Europe/London
> -rw-r--r-- 1 root root 3661 [...] /etc/localtime
> ==
>
>
> (OTTOMH, there is/was some reason for making /etc/localtime a file and
> not a symlnk).
>


Following up on that 'ottomh', seems that sysd wants symlink - e.g. :

  http://www.freedesktop.org/software/systemd/man/localtime.html
  https://bugzilla.redhat.com/show_bug.cgi?id=885246
  http://www.linuxfromscratch.org/lfs/view/7.6-systemd/chapter06/glibc.html

ISTR that it (commonly) used to be a symlink, years ago, and then (commonly)
changed to being a file - maybe re what partitions are available at boot,
&c. Some googling might help nail it down better - e.g.

  https://bugzilla.redhat.com/show_bug.cgi?id=91228

&c&c.



hth,

akh





--
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to