Bug#523777: /etc/grub.d/10_hurd: obsolete conffile /etc/grub.d/10_hurd not removed

Felix Zielcke fzielcke at z-51.de
Sun Apr 12 13:58:33 UTC 2009


Am Sonntag, den 12.04.2009, 13:34 +0100 schrieb Sam Morris:
> Package: grub-pc
> Version: 1.96+20090317-1
> Severity: minor
> File: /etc/grub.d/10_hurd
> Usertags: cruft
> 
> The following file was shipped in a previous version of the package, but was
> not removed on upgrade:
> 
>  /etc/grub.d/10_hurd dd21337b54c93bf1fa1a979261ed09d1 obsolete
> 

Here's a grub-common.postinst which removed it on upgrades.
Robert what do you think, is there maybe some other/better way to
archive this?

#!/bin/bash -e

case "$1" in
  configure)

    if [ -n "$2" -a -f /etc/grub.d/10_hurd ] ; then
       dpkg --compare-versions $2 le 1.96+20090412-1
       if [ $? -eq 0 ]; then
         rm /etc/grub.d/10_hurd
       fi
    fi
  ;;
  abort-upgrade|abort-remove|abort-deconfigure)
  ;;
  *)
    echo "postinst called with unknown argument \`$1'" >&2
    exit 1
  ;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0

-- 
Felix Zielcke






More information about the Pkg-grub-devel mailing list