Re: [PATCH] pvremove *really* means pvremove!

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

 



Looks good (ignoring your other patch).

On 03/09/2009 05:15 AM, Joel Granados Moreno wrote:
* storage/devicelibs/lvm.py (pvremove): Make sure to erase the PVs with
   arguments "-ff"" and "-y".  The first one is to force the action, the
   other is to make sure lmv does ask for user interaction.
---
  storage/devicelibs/lvm.py |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/storage/devicelibs/lvm.py b/storage/devicelibs/lvm.py
index 0faee10..bdb732a 100644
--- a/storage/devicelibs/lvm.py
+++ b/storage/devicelibs/lvm.py
@@ -130,7 +130,7 @@ def pvresize(device, size):

  def pvremove(device):
      rc = iutil.execWithRedirect("lvm",
-                                ["pvremove", device],
+                                ["pvremove","-ff", "-y", device],
                                  stdout = "/dev/tty5",
                                  stderr = "/dev/tty5",
                                  searchPath=1)


--
David Cantrell <dcantrell@xxxxxxxxxx>
Red Hat / Honolulu, HI

_______________________________________________
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