Bug#649537: lvm2: lvremove only inspects the last char when doing an 'are you sure? [y/n]'
dblack
debian at dhb.is
Mon Nov 21 23:56:55 UTC 2011
Package: lvm2
Version: 2.02.66-5
Severity: grave
Justification: causes non-serious data loss
I noticed that when I ran 'lvremove' on a LV I wanted to remove that I was able to type anything followed by the 'y' char and this would pass the 'are you sure' prompt. Here is an example, which I ran on a real system:
root at vmdev3:/home/dblack# lvremove /dev/vmdev3-vg0/indexing.bepress.com-*
Do you really want to remove active logical volume indexing.bepress.com-swap? [y/n]: noy
Logical volume "indexing.bepress.com-swap" successfully removed
Do you really want to remove active logical volume indexing.bepress.com-disk? [y/n]: ny
Logical volume "indexing.bepress.com-disk" successfully removed
In other words, the idiot-proofing is broken and this could easily lead to an LV being deleted and data loss.
-- System Information:
Debian Release: 6.0.3
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-xen-amd64 (SMP w/12 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages lvm2 depends on:
ii dmsetup 2:1.02.48-5 The Linux Kernel Device Mapper use
ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib
ii libdevmapper1.02.1 2:1.02.48-5 The Linux Kernel Device Mapper use
ii libreadline5 5.2-7 GNU readline and history libraries
ii libudev0 164-3 libudev shared library
ii lsb-base 3.2-23.2squeeze1 Linux Standard Base 3.2 init scrip
lvm2 recommends no packages.
lvm2 suggests no packages.
-- no debconf information
More information about the pkg-lvm-maintainers
mailing list