Bug#384821: Should predepend on lvm-common

Adam Majer adamm at zombino.com
Sun Aug 27 00:30:06 UTC 2006


Package: lvm2
Version: 2.02.06-2
Severity: serious
Justification: Policy 7.2

lvm2 preinst script is using files from lvm-common. Policy states,

 Pre-Depends are also required if the preinst script depends on the
 named package. It is best to avoid this situation if possible.

Now, if the preinst is correct (ie. do not show warning message if
user uninstalls lvm1 tools, but still has lvm1 data), then the proper
way to fix it is to check if /sbin/lvmiopversion exists first.


I'm not a LVM expert (just installing it now :), so I'm not sure if
this bug can cause silent data loss for some if they don't have
lvm-common installed at all, but have lvm1 data.


Preparing to replace lvm2 2.02.06-2 (using lvm2_2.02.06-2_i386.deb) ...
/var/lib/dpkg/tmp.ci/preinst: line 1: /sbin/lvmiopversion: No such file or directory
/var/lib/dpkg/tmp.ci/preinst: line 15: [: : integer expression expected
Unpacking replacement lvm2 ...
Selecting previously deselected package lvm-common.
Unpacking lvm-common (from lvm-common_1.5.20_i386.deb) ...
Setting up lvm-common (1.5.20) ...
Installing new version of config file /etc/init.d/lvm ...
Installing new version of config file /etc/default/lvm-common ...


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (900, 'unstable'), (5, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-1-k7
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)




More information about the pkg-lvm-maintainers mailing list