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

[augeas-devel] Is this a bug in Augeas?



https://bugzilla.redhat.com/show_bug.cgi?id=1582236

A customer reported that virt-v2v failed when presented with a
grub.conf file which contained:

  # grub.conf generated by anaconda
  boot=/dev/sda1
  acpi=off
  default=0
  timeout=5
  [... etc ...]

It failed at the line ‘acpi=off’.  This is not a grub command (I
suspect the customer was asked to add this to the kernel command line,
but added it in the wrong place), but it appears that grub ignores it.
Augeas fails to parse the whole file.

So Augeas is kind of doing the right thing here (pointing out an error
in the configuration), but also being overly fussy, and IMHO it
unnecessarily prevents a v2v conversion which should succeed.

What's the best way to deal with this?  A catch-all rule in grub.lens?
We want to edit this file so I think we need to try to preserve the
incorrect line.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v



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