[augeas-devel] The save does nothing
makkalot at gmail.com
makkalot at gmail.com
Thu May 22 18:02:43 UTC 2008
Hi again and sorry for delay ,the problem is still there :)
> Excellent .. I'd be very curious to see that; are you planning on
> exposing the Augeas interface "straight up" through func or will you
> wrap it in something more targetted ?
Func's aim is to make the remote things as simple,fun as possible so we need
to edit /etc/hosts and the other stuff, My mentor will say :) After we decide
what todo on augeas i will post a detailed todo list to you if you wish ;)
> There's your problem: you set AUGEAS_ROOT to a relative path. Try
> 'export AUGEAS_ROOT=$PWD/augeas-root
>
I think i tried it with absolute_path but nothing changed .
Hmm ok i will the exact way of the TODO in your web site
[makkalot at localhost func-prepare]$ export AUGEAS_ROOT=/tmp/augeas-sandbox
[makkalot at localhost func-prepare]$ echo $AUGEAS_ROOT
/tmp/augeas-sandbox
[makkalot at localhost func-prepare]$ mkdir $AUGEAS_ROOT
[makkalot at localhost func-prepare]$ su
Password:
[root at localhost func-prepare]# echo $AUGEAS_ROOT
/tmp/augeas-sandbox
[root at localhost func-prepare]# cp -pr /etc $AUGEAS_ROOT
[root at localhost func-prepare]# echo $USER
makkalot
[root at localhost func-prepare]# chown -R $USER $AUGEAS_ROOT
[root at localhost func-prepare]# su makkalot
[makkalot at localhost func-prepare]$ augtool -b
The root is (null)
The load path is (null)
The flags is : 1
I think here we have an error dude
augtool> print
/augeas
/augeas/root = "/tmp/augeas-sandbox/"
/augeas/save = "backup"
augtool> set /files/etc/hosts/10000/ipaddr 192.168.0.1
augtool> set /files/etc/hosts/10000/canonical pigiron.example.com
augtool> set /files/etc/hosts/10000/alias[1] pigiron
augtool> set /files/etc/hosts/10000/alias[2] piggy
augtool> save
augtool> print
/augeas
/augeas/root = "/tmp/augeas-sandbox/"
/augeas/save = "backup"
/files
/files/etc
/files/etc/hosts
/files/etc/hosts/10000
/files/etc/hosts/10000/ipaddr = "192.168.0.1"
/files/etc/hosts/10000/canonical = "pigiron.example.com"
/files/etc/hosts/10000/alias[1] = "pigiron"
/files/etc/hosts/10000/alias[2] = "piggy"
augtool> exit
Is there a way i can see log messages ,what is happening right now. In the
above example i added some debug messages to the code ignore them. Because
i'm not very familiar to the code base couldnt see where the problem is.
Thanks for help in advance ...
More information about the augeas-devel
mailing list