Re: Status of LVM/RAID in d-i?
On Wed, Jun 14, 2006 at 11:40:00AM +0200, Frans Pop wrote:
2. test for existing physical volume name is broken
After entering a name for a physical volume I always get a screen saying
the name is already in use.
The problem seems to be in this code in choose_partition/lvm/do_option:
# Check whether the VG name is already in use
if vgs "$vg" > /dev/null 2>&1; then
db_set partman-lvm/vgcreate_nameused "false"
db_input high partman-lvm/vgcreate_nameused
db_go
return
fi
If I try that test from the console:
# vgs newname
Volume group "newname" not found
# echo $?
0
Actually, it turns out to be a bug introduced in lvm2 version 2.02.06-1:
austin:/home/david# vgs --version
LVM version: 2.02.05 (2006-04-21)
Library version: 1.02.07 (2006-05-11)
Driver version: 4.5.0
austin:/home/david# vgs bogus
Volume group bogus not found
austin:/home/david# echo $?
5
austin:/home/david# apt-get update && apt-get install lvm2
...snip...
austin:/home/david# vgs --version
LVM version: 2.02.06 (2006-05-12)
Library version: 1.02.07 (2006-05-11)
Driver version: 4.5.0
austin:/home/david# vgs bogus
Volume group "bogus" not found
austin:/home/david# echo $?
0
I've filed a bug report.
3. formatting error on confirmation screen for partition changes
The header "The following partitions..." is misaligned.
See: http://people.debian.org/~fjp/d-i/partman-lvm_confirm.png
I've committed a fix to SVN.
Regards,
David
Reply to: