~ubuntu-branches/ubuntu/quantal/lvm2/quantal

« back to all changes in this revision

Viewing changes to debian/lvm2.preinst

  • Committer: Steve Langasek
  • Date: 2012-04-14 02:57:53 UTC
  • mfrom: (3.1.22 sid)
  • Revision ID: steve.langasek@canonical.com-20120414025753-ejbdw9c8llik58y9
Merge version 2.02.88-2 from Debian testing

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 
5
5
case "$1" in
6
6
    upgrade)
7
 
        if dpkg --compare-versions "$2" lt 2.02.39-5; then
8
 
            if [ -L /lib/lvm-default ]; then
9
 
                rm -f /lib/lvm-default
10
 
            fi
11
 
            rm -f /etc/lvm/.cache
12
 
        fi
13
 
        if dpkg --compare-versions "$2" lt 2.02.51-1; then
14
 
            if [ -e /etc/init.d/lvm ]; then
15
 
                rm -f /etc/init.d/lvm
16
 
            fi
17
 
            update-rc.d lvm remove >/dev/null || :
 
7
        if dpkg --compare-versions "$2" lt 2.02.88-1; then
 
8
            if [ -d /etc/lvm/cache ]; then
 
9
                rm -rf /etc/lvm/cache
 
10
            fi
18
11
        fi
19
12
    ;;
20
13
esac