The standard way of doing this in Debian is with debconf (not to be confused with the Debian conference!). This allows packages to ask questions and act on the user's answers. The wiki linked above has details, including a link to a tutorial (using debconf is too involved to explain here).

Conditional file and directory installation in Debian Packages
My system is encrypted using Full Disk Encryption, i.e. everything except /boot is encrypted using dmcrypt/luks. I am concerned about Cold Boot Attacks.

Prior work:


https://tails.boum.org/contribute/design/memory_erasure/
http://tails.boum.org/forum/Ram_Wipe_Script/
http://dee.su/liberte-security
http://forum.dee.su/topic/stand-alone-implementation-of-your-ram-wipe-scripts


Can you please provide instructions on how to wipe the RAM once Ubuntu is shutdown/restarted?

Thanks for your efforts!
