preinst is in grub-pc 2.02~beta2-9ubuntu1.6.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #!/bin/bash
set -e
case "$1" in
install|upgrade)
if dpkg --compare-versions "$2" lt 1.98+20100804-2 && \
test -h /etc/kernel/postrm.d/zz-update-grub; then
rm -f /etc/kernel/postrm.d/zz-update-grub
fi
;;
esac
exit 0
|