Richard W.M. Jones
2017-Apr-28 18:11 UTC
Re: [Libguestfs] [PATCH v6 0/1] v2v bootloaders and augeas
On Fri, Apr 28, 2017 at 07:58:41PM +0300, Pavel Butsykin wrote:> > > On 28.04.2017 17:46, Pino Toscano wrote: > >On Wednesday, 19 April 2017 15:58:56 CEST Pavel Butsykin wrote: > >>I dare to raise an old topic :) It seemed to me that this patch already applied, > >>but recently discovered that it is not. > >> > >>As far as I understand we can't do a strict requirement to use Augeas >= 1.7.0. > >>But initially, the patch solves another problem. If we still can't do a hard > >>requirement for Augeas, let's use workaround proposed by Pino: > >> let () > >> (* Apply the "grub" lens if it is not handling the file > >> * already -- Augeas < 1.7.0 will error out otherwise. > >> *) > >> if g#aug_ls ("/files" ^ grub_config) = [||] then > >> g#aug_transform "grub" grub_config in > >> > >>As a temporary solution looks fine. > > > >Better this solution than raising the Augeas requirements, for now. > > > > Rich, What about workaround?I guess. I disagree with Pino on this, but he knows the topic better. Is there a final patch ready to apply now? I think lost the beginning of this thread. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://people.redhat.com/~rjones/virt-df/
Pavel Butsykin
2017-May-02 12:37 UTC
[Libguestfs] [PATCH v6 0/1] v2v bootloaders and augeas
On 28.04.2017 21:11, Richard W.M. Jones wrote:> On Fri, Apr 28, 2017 at 07:58:41PM +0300, Pavel Butsykin wrote: >> >> >> On 28.04.2017 17:46, Pino Toscano wrote: >>> On Wednesday, 19 April 2017 15:58:56 CEST Pavel Butsykin wrote: >>>> I dare to raise an old topic :) It seemed to me that this patch already applied, >>>> but recently discovered that it is not. >>>> >>>> As far as I understand we can't do a strict requirement to use Augeas >= 1.7.0. >>>> But initially, the patch solves another problem. If we still can't do a hard >>>> requirement for Augeas, let's use workaround proposed by Pino: >>>> let () >>>> (* Apply the "grub" lens if it is not handling the file >>>> * already -- Augeas < 1.7.0 will error out otherwise. >>>> *) >>>> if g#aug_ls ("/files" ^ grub_config) = [||] then >>>> g#aug_transform "grub" grub_config in >>>> >>>> As a temporary solution looks fine. >>> >>> Better this solution than raising the Augeas requirements, for now. >>> >> >> Rich, What about workaround? > > I guess. I disagree with Pino on this, but he knows the topic better. > > Is there a final patch ready to apply now? I think lost the > beginning of this thread.I also have little knowledge in this topic and I also wonder why we can't move on Augeas 1.7.0. Are stable version of Linux distros can use the fresh Libguestfs versions? Anyway I sent patch v7 with the latest fixes.> > Rich. >
Maybe Matching Threads
- Re: [PATCH v6 0/1] v2v bootloaders and augeas
- Re: [PATCH v6 1/1] v2v: bootloaders: search grub config for all distributions
- Re: [PATCH v6 1/1] v2v: bootloaders: search grub config for all distributions
- Re: [PATCH v6 0/1] v2v bootloaders and augeas
- [PATCH] v2v: bootloaders: search grub config for all distributions