[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [PATCH] storage rewrite lvm pvcreate -ff
- From: David Lehman <dlehman redhat com>
- To: Discussion of Development and Customization of the Red Hat Linux Installer <anaconda-devel-list redhat com>
- Subject: Re: [PATCH] storage rewrite lvm pvcreate -ff
- Date: Tue, 03 Mar 2009 10:19:03 -0600
Grr, lvm is such a pain in the ass sometimes. Try this patch:
diff --git a/storage/formats/lvmpv.py b/storage/formats/lvmpv.py
index a1c2e53..b87029e 100644
--- a/storage/formats/lvmpv.py
+++ b/storage/formats/lvmpv.py
@@ -87,6 +87,10 @@ class LVMPhysicalVolume(DeviceFormat):
""" Consider use of -Z|--zero
-f|--force or -y|--yes may be required
"""
+ # lvm has issues with persistence of metadata, so here comes
the
+ # hammer...
+ DeviceFormat.destroy(self, *args, kwargs)
+
lvm.pvcreate(self.device)
self.exists = True
self.notifyKernel()
On Tue, 2009-03-03 at 16:53 +0100, Joel Granados wrote:
> I've used this patch for some time and it does not seem to fully work.
> It avoids lvm returning an error. but it still requires interaction
> from the user. so I have to go to tty1 and input "y" and press return.
> Have not been able to fix this behavior unfortunately
> On Tue, Mar 03, 2009 at 12:40:04AM -0600, David Lehman wrote:
> >
> > I hit this one today. Ack.
> >
> > On Mon, 2009-03-02 at 18:21 +0100, Joel Granados wrote:
> > > Hello list.
> > >
> > > Have not seen this one in the patches sent. If it is there, I am sorry
> > > for resending.
> > >
> > > Regads
> > > _______________________________________________
> > > Anaconda-devel-list mailing list
> > > Anaconda-devel-list redhat com
> > > https://www.redhat.com/mailman/listinfo/anaconda-devel-list
> >
> > _______________________________________________
> > Anaconda-devel-list mailing list
> > Anaconda-devel-list redhat com
> > https://www.redhat.com/mailman/listinfo/anaconda-devel-list
>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]