Building Debian package - pre-installation check

Posted by debianuser on Server Fault See other posts from Server Fault or by debianuser
Published on 2011-11-22T09:46:18Z Indexed on 2011/11/22 9:58 UTC
Read the original article Hit count: 268

Filed under:
|
|

I am building a custom Debian package and during the installation, I would like the package to check for available diskspace and only proceed if there is enough space. I would like this to happen during re-install as well.

I tried adding bash code to do the check in preinst and prerm file(for re-installations) with exit 1 if the check fails, but the installer went ahead and copied files and I end up with a broke installation.

What am I doing wrong?

© Server Fault or respective owner

Related posts about debian

Related posts about package