[PATCH 2/2] Tell 'lvm' that yes, we really, really want to remove PV

Vratislav Podzimek vpodzime at redhat.com
Mon Sep 10 12:21:59 UTC 2012


Using --force --force is not enough, 'lvm' still asks, if we really
want to remove PV used by some VG. Adding --yes fixes the issue.

Resolves: rhbz#853977

Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
 pyanaconda/storage/devicelibs/lvm.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyanaconda/storage/devicelibs/lvm.py b/pyanaconda/storage/devicelibs/lvm.py
index fedba99..e2d6215 100644
--- a/pyanaconda/storage/devicelibs/lvm.py
+++ b/pyanaconda/storage/devicelibs/lvm.py
@@ -190,7 +190,7 @@ def pvresize(device, size):
         raise LVMError("pvresize failed for %s: %s" % (device, msg))
 
 def pvremove(device):
-    args = ["pvremove", "--force", "--force"] + \
+    args = ["pvremove", "--force", "--force", "--yes"] + \
             config_args + \
             [device]
 
-- 
1.7.11.4



More information about the anaconda-patches mailing list