[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#542441: old LVM data is not erased



Package: partman-lvm
Version: 65
Severity: normal

While doing an automatic Lenny installation on a previously used disk,
I've found that debian-installer fails to erase the previous partition
data before using my partman-auto/expert_recipe . Therefore, it fails to
create the new VG and LVs, and stops there, displaying an error.

I think the problem is that the function device_remove_lvm , on
partman-lvm/lib/lvm-remove.sh , is not called from anywhere else in the
code on partman-lvm, partman-auto-lvm or partman-auto.

My preseed file contains the following partman related variables:

d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string lvm
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-lvm/device_remove_lvm_span boolean true
d-i partman-auto/purge_lvm_from_device  boolean true
d-i partman-auto-lvm/new_vg_name string vg00
d-i partman-md/device_remove_md boolean true
d-i partman-lvm/confirm boolean true
d-i partman-basicmethods/method_only boolean false
d-i partman-auto/expert_recipe string           \
        boot-root-swap ::                       \
                128 512 256 ext3                \
                        $defaultignore{ }       \
                        $primary{ }             \
                        $bootable{ }            \
                        method{ format }        \
                        format{ }               \
                        use_filesystem{ }       \
                        filesystem{ ext3 }      \
                        mountpoint{ /boot }     \
                .                               \
                100 1000 -1 ext3                \
                        $defaultignore{ }       \
                        $primary{ }             \
                        method{ lvm }           \
                        vg_name{ vg00 }         \
                .                               \
                500 4000 -1 ext3                \
                        $lvmok{ }               \
                        in_vg{ vg00 }           \
                        $primary{ }             \
                        $bootable{ }            \
                        method{ format }        \
                        format{ }               \
                        use_filesystem{ }       \
                        filesystem{ ext3 }      \
                        mountpoint{ / }         \
                .                               \
                96 512 300% linux-swap          \
                        $lvmok{ }               \
                        in_vg{ vg00 }           \
                        method{ swap }          \
                        format{ }               \
                .

d-i partman-auto/choose_recipe select boot-root-swap
d-i partman/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true


-- 
Enrique Zanardi					ezanardi@atlantux.com



Reply to: