Comment 39 for bug 523484

Revision history for this message
maccus (maccus) wrote :

I suppose this could easily be fixed within the package scripts. Just let the scripts check if the package is installed on a system with separate /var and modify the to be installed init file accordingly.

I currently use something like this in a local standalone postinstall script, i guess it could be modified to accomodate the ureadahead package:

if grep -q '/var' /etc/fstab; then

    grep -q '/var' /etc/init/ureadahead.conf || sed -i "s|^start on starting mountall|start on mounted MOUNTPOINT=/var|" /etc/init/ureadahead.conf

fi