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: Casey Harkins <charkins AT upl.cs.wisc.edu>
  • To: Mads Laursen <dossen+sgl AT daimi.au.dk>
  • Cc: sm-discuss <sm-discuss AT lists.ibiblio.org>
  • Subject: Re: [SM-Discuss] /etc/localtime
  • Date: Fri, 7 Nov 2003 21:56:19 -0600 (CST)



On Fri, 7 Nov 2003, Mads Laursen wrote:
> > 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.

Just checked, that will work perfectly. Anyone see any reason not to do
this? If not, I'll bug it with this fix.

-casey






Archive powered by MHonArc 2.6.24.

Top of Page