I finally had the time to look at the source package, and noticed that, although wrappers were supposed to be added for both update-grub and grub-install, the approach to add such wrappers was different in the two cases.
I attach a simple patch, which applies to -16, to replicate the update-grub approach for grub-install. I only tested this on an update of grub on my system. I leave judgement concerning the general case (and d-i context in particular) to the maintainers. Best regards, Pier Luigi Pau
diff -u -r orig/grub-0.97/debian/grub-install.wrapper mine/grub-0.97/debian/grub-install.wrapper --- orig/grub-0.97/debian/grub-install.wrapper 2006-09-16 20:08:54.000000000 +0200 +++ mine/grub-0.97/debian/grub-install.wrapper 2006-09-16 20:08:10.000000000 +0200 @@ -8,7 +8,7 @@ echo "You shouldn't call /sbin/grub-install. Please call /usr/sbin/grub-install instead!" echo fi - exec /usr/sbin/grub-install $* + exec /usr/sbin/grub-install.real $* else echo "Your /usr is broken, please fix it before call this wrapper!" fi diff -u -r orig/grub-0.97/debian/rules mine/grub-0.97/debian/rules --- orig/grub-0.97/debian/rules 2006-09-16 20:08:54.000000000 +0200 +++ mine/grub-0.97/debian/rules 2006-09-16 20:14:33.000000000 +0200 @@ -260,9 +260,11 @@ # binary-arch/binary-indep # in another 'make' thread. binary-common: - # Add a wrapper for update-grub. Remove it post-etch + # Add wrappers for update-grub and grub-install. Remove them post-etch cp debian/update-grub.wrapper debian/grub/sbin/update-grub + cp debian/grub-install.wrapper debian/grub/sbin/grub-install mv debian/grub/usr/sbin/update-grub debian/grub/usr/sbin/update-grub.real + mv debian/grub/usr/sbin/grub-install debian/grub/usr/sbin/grub-install.real cp debian/update-grub.wrapper debian/grub/usr/sbin/update-grub cp debian/grub-install.wrapper debian/grub/usr/sbin/grub-install