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

Matthew Booth mbooth at redhat.com
Mon Jul 12 21:31:05 UTC 2010


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.

Matt




More information about the Libguestfs mailing list