[augeas-devel] create multiple nodes without values

Jonathan I jonathan.ilroy at gmail.com
Tue Oct 26 10:19:06 UTC 2010


Hi,

I am trying to edit each kernel entry of /etc/grub.conf with augeas.

It seems that the only way in augeas to modify or create multiple nodes is
with the setm command.
This works fine as long as the new nodes have values. How could nodes be
defined with no values ?
Say, for example, that you want to add the noapic parameter to each kernel
entry in /etc/grub.conf :
kernel /vmlinuz-2.6.18-194.17.4.el5 ro root=/dev/volgroup01/root noapic
I tried using setm /files/etc/grub.conf/title[*]/kernel noapic "" but
predictably an equal sign is added as "" is seen as the "" value instead of
nothing. In my opinion it could be done if there was a way to differentiate
between an empty value ("") and nothing or with a clearm command similar to
setm.

Any idea ?

Thanks

Jonathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/augeas-devel/attachments/20101026/875c9529/attachment.htm>


More information about the augeas-devel mailing list