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

Bug#563161: Provide way to distinguish remove and purge in postrm hooks



Package: linux-2.6
Version: 2.6.30-2
Severity: wishlist

Hi,

if a kernel package is purged, the scripts in /etc/kernel/postrm.d are
run twice. Once for `remove' and once for `purge'. There is no way,
however, to find out the current phase and to prevent running the
script twice.

A kernel built with kernel-package sets the variable `DEB_MAINT_PARAMS'
to `remove' and `purge', respectively. Something similar should also be
supported by official kernel builds (preferably kernel-package and
official builds should agree on the way to do this).

Cheers,
harry

Attachment: signature.asc
Description: PGP signature


Reply to: