[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 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


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