[Libguestfs] [PATCH 2/2] Update grub's device.map
Richard W.M. Jones
rjones at redhat.com
Fri Jul 2 17:13:25 UTC 2010
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
More information about the Libguestfs
mailing list