Re: [tytso@MIT.EDU: Re: Bug#343662: fsck errors halting boot after upgrade]
On Sun, Dec 18, 2005 at 10:37:06PM -0500, Anthony DeRobertis wrote:
> Theodore Ts'o wrote:
> > (for example if the US Congress
> > changes the definition of daylight savings time),
>
> That should be "when", not "if", unfortunately. AFAIK, they've already
> done it.
>
> On my system, /bin, /etc, /lib, and /sbin together are 156M;
> /usr/share/zoneinfo is 5.5M. So, while a 3.5% increase in the size of /
> would fix it, it seems rather wasteful for the need of ~1K.
>
> Maybe just copy (in, e.g., postinst) the one file needed to
> /lib/zoneinfo, and create the symlink to that. It really shouldn't be in
> /etc; binary files do not belong there.
I was only proposing to copy the one file. I don't think it's quite
so important to put it in /lib and then put a symlink from
/etc/localtime to /lib/localtime. There _are_ other binary files in
/etc. Just do:
find /etc -type f | xargs file | grep data
and you'll find files such as
/etc/apt/trusted.gpg
/etc/ld.so.cache
/etc/prelink.cache
...as well as image files, PPD files, pcmcia data files, and many
others.
Specifically, what I would propose is /etc/localtime.conf contain
something like "US/Eastern", and let /etc/zoneinfo be a copy of the
file /usr/share/zoneinfo/`cat /etc/zoneinfo`.
Does anyone have any objections with this proposal?
- Ted
Reply to: