On Wed, 2010-05-12 at 17:53 +0100, Matthew Booth wrote:
> My (just posted) patch for /etc/modules.conf includes a simple test
> including the directives it parses which Modprobe doesn't. For a more
> real-world test, I found this beast of a modules.conf:
> 
> http://www.janerob.com/rob/ts5100/modules.conf
> 
> I copied my modules.aug into /usr/share/augeas/lenses, 

For testing, you can also just do 'augtool -I /some/dir', and if you put
the modules.conf into /tmp/etc/modules.conf, you can do 'augtool -r /tmp
-I /some/dir'

> and put the above
> file in /etc/modules.conf. augeas fails to parse it. Output is:
> 
> [r...@t500 tmp]# augtool
> augtool> ls /etc/modules.conf

This should be 'ls /files/etc/modules.conf', but will probably be empty
if parsing failed.

> augtool> match /augeas//error
> /augeas/files/etc/modules.conf/error = parse_failed

The magic incantation is 'print /augeas//error' - this will also print
all the subnodes of /augeas/files/etc/modules.conf/error, which contain
more details on what exactly went wrong.

I'll have a look at this with the lens you sent in a little bit.

cheers,
David


_______________________________________________
augeas-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/augeas-devel

Reply via email to