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

Felix Zielcke fzielcke at z-51.de
Mon Apr 13 07:41:36 UTC 2009


Am Sonntag, den 12.04.2009, 15:58 +0200 schrieb Felix Zielcke:

> 
> 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?
> 

Ah it was a bit wrong because of `bash -e' and it shouldn't be removed
on hurd arch.
And 10_freebsd should be removed too on non freebsd arch.
So here's another one:

    if [ -n "$2" ] ; then
       if dpkg --compare-versions $2 le 1.96+20090413-1 ; then
         if [ `dpkg-architecture -qDEB_HOST_ARCH_OS` != "hurd" -a -f /etc/grub.d/10_hurd ] ; then
           rm /etc/grub.d/10_hurd
         fi
         if [ `dpkg-architecture -qDEB_HOST_ARCH_OS` != "*freebsd" -a -f /etc/grub.d/10_freebsd ] ; then
           rm /etc/grub.d/10_freebsd
         fi
       fi
    fi

-- 
Felix Zielcke






More information about the Pkg-grub-devel mailing list