Bug#400600: [Pkg-cryptsetup-devel] Bug#400600: please clarify role of /lib/cryptsetup/cryptdisks.functions

Jonas Meurer jonas at freesources.org
Tue Nov 28 17:17:03 UTC 2006


On 27/11/2006 David Härdeman wrote:
> >But now these scripts just exit with an OK status if this file is not
> >present/readable... Under my assumption above it should be a grave error
> >instead.
> 
> No, because the init scripts can under some conditions still be left on 
> your system even after you've removed the cryptsetup package. Checking 
> in init.d scripts for some necessary components and silently exiting if 
> they're missing is quite common.
> 
> Example - /etc/init.d/postgresql-8.1
> line 17:  [ -r /usr/share/postgresql-common/init.d-functions ] || exit 0
>
> >It would be nice if README.Debian provided documentation how the scripts 
> >are intended to work together.
> 
> Why? If the cryptdisks.functions script is missing even though you haven't 
> removed the cryptsetup package from your system something is seriously 
> broken.

I agree with that opinion. Init scripts and other configuration files
stay on your system if the package is removed but not purged. Therefore
it is even better if the scripts silently exit in this situation.

Robert do you have any objections against closing this bugreport?

...
 jonas




More information about the pkg-cryptsetup-devel mailing list