#!/bin/sh -e # don't bother with debconf for this, since very few systems are likely to # be affected by this upgrade, and it's a one-shot deal. this postinst can # probably be safely removed for the woody+1 release. case "$1" in configure) # continue below ;; abort-upgrade|abort-remove|abort-deconfigure) exit 0 ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 0 ;; esac if [ "$2" ] && dpkg --compare-versions $2 lt 3.2-1 then echo "" echo "You appear to be upgrading from an old (pre-3.2) version of the elilo" echo "package. The structure of files in the EFI partition is different" echo "now, and the EFI boot manager entry for Debian needs to be updated." echo "" echo "If you have not made any manual changes to the EFI partition content" echo "that you want to preserve, we can reformat and reload that partition" echo "for you, and rewrite the boot manager entry to be correct." echo "" echo "Do you want me to reformat and reload the EFI partition and write an" echo -n "updated boot manager entry for you [Ny]? " read answer case "$answer" in [Yy]*) echo -n "Working... " /usr/sbin/elilo --format --efiboot echo "done." ;; *) echo "No action taken. See /usr/share/doc/elilo/* for more info." ;; esac echo "" fi #DEBHELPER# exit 0