I'm using Augeas 0.7.4 and wrote a little stub lens to use ShellVars_list on /etc/conf.d/modules in Gentoo.
I'm trying to put a value to the modules_2_6 variable; this is the output of a
test session (there is currently no modules_2_6 set):
# augtool
augtool> set /files/etc/conf.d/modules/modules_2_6[last()+1] junk0
augtool> save
Saving failed
augtool> ls /augeas/files/etc/conf.d/modules/error/
path = /files/etc/conf.d/modules
lens = /usr/share/augeas/lenses/dist/shellvars_list.aug:40.12-.37:
message = Malformed child node 'modules_2_6'
Below is my stub lens.
-Doug
gentooconf_list.aug:
module GentooConf_list=
autoload xfm
let xfm = transform Shellvars_list.lns (
incl "/etc/conf.d/modules"
)
signature.asc
Description: OpenPGP digital signature
_______________________________________________ augeas-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/augeas-devel
