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

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
New in Fedora 11: Fedora Windows cross-compiler. Compile Windows
programs, test, and build Windows installers. Over 70 libraries supprt'd
http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw


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