[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: I have a beef with policy 3.3.3



On Tue, May 02, 2000 at 03:14:15PM +1000, Anthony Towns wrote:
> On Mon, May 01, 2000 at 01:59:15PM -0400, Branden Robinson wrote:
> > update-rc.d has no way of knowing if the symlinks in the rc directories
> > aren't there because the local admin removed them, or because the package
> > was just installed.
> 
> So you should leave the K scripts about, rather than completely removing
> all the links. Or changing the word `start' in /etc/init.d/xdm to `begin',
> or so.

What an unspeakable kludge!

How about letting people use update-rc.d and work as its manpage advertises?

> >  A postinst script cannot distinguish between an
> > initial install and an upgrade, therefore you can't add some kind of
> > conditional around the update-rc.d call in the postinst.
> 
> if [ "$1" = "configure" -a -z "$2" ]; then
> 	: initial install
> fi

Ah, thanks.  I used to know that, but had forgotten.

So, why isn't it policy for packages to update-rc.d their init scripts only
on initial install?  Policy just tells them to do in the postinst, period
-- which means unconditionally by implication.

If your only defense of the status quo is that it can be worked around by
procedures which aren't documented in any package, then it is inadequate.

-- 
G. Branden Robinson            |      We either learn from history or,
Debian GNU/Linux               |      uh, well, something bad will happen.
branden@ecn.purdue.edu         |      -- Bob Church
roger.ecn.purdue.edu/~branden/ |

Attachment: pgpvo9MLqKhic.pgp
Description: PGP signature


Reply to: