[PATCH 6/6] Assure pvremove that we indeed want it to remove a pv. (#820575)

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

 



In the case of clearpart we could be running pvremove on a pv that
is still associated with a vg, so lvm makes us do this for our own
protection.
---
 pyanaconda/storage/devicelibs/lvm.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux