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

Bug#757818: partman-lvm: Refuses to reinstall if it find old lvm volume



Control: tag 757818 + patch

I've tested both '--yes' and '--wipesignatures n' in d-i now, and both
work.  With either, I am able to reinstall a Debian Edu profile
without any problem. :)

I am not quite sure which of these best fit d-i.  I notice the Fedora
people went with --yes in anakonda.  Perhaps we should do the same?
On the other hand, the old behaviour was to not wipe signatures, and
to keep it we should add '--wipesignatures n'.

Based on this, I recommend we use '--wipesignatures n' to keep the old
behaviour.  Here is a patch implementing the fix.

diff --git a/lib/lvm-base.sh b/lib/lvm-base.sh
index 4e83d67..656893a 100644
--- a/lib/lvm-base.sh
+++ b/lib/lvm-base.sh
@@ -477,7 +477,8 @@ lv_create() {
        lv="$2"
        extents="$3"
 
-       log-output -t partman-lvm lvcreate -l "$extents" -n "$lv" $vg
+       # Do not ask if signatures should be wiped, to avoid hanging the installer (BTS #757818).
+       log-output -t partman-lvm lvcreate --wipesignatures n -l "$extents" -n "$lv" $vg
        return $?
 }
 

-- 
Happy hacking
Petter Reinholdtsen


Reply to: