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

Re: [Libguestfs] [PATCH 2/2] Update grub's device.map



On Mon, Jul 12, 2010 at 10:31:05PM +0100, Matthew Booth wrote:
> On 02/07/10 18:13, Richard W.M. Jones wrote:
> > On Wed, Jun 30, 2010 at 11:55:51AM +0100, Matthew Booth wrote:
> >> +            foreach my $key ($g->aug_match('/files/boot/grub/device.map/*')) {
> >> +                $key =~ m{/files/boot/grub/device.map/(.*)} or die;
> >> +                my $gdev = $1;
> >> +
> >> +                next if ($gdev =~ /^#comment/);
> > 
> > Shouldn't the Augeas lens take care of these?
> 
> Augeas parses comments and returns them in the tree.

Oh I see, it's matching on the key name.  In that case, ACK.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top


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