[xen-tools-discuss] using editor role
Steve Kemp
steve at steve.org.uk
Thu Jul 16 21:54:11 CEST 2009
On Thu Jul 16, 2009 at 12:05:29 -0700, Cruzio Research wrote:
> I've setup a file at /etc/xen-tools/sed.d/etc/sysctl.conf.sed containing
> a single line:
>
> xen.independent_wallclock=1
You need to have a complete sedfile content not just the one line.
The file you give is invoked with:
sed -i~ -f "yourfile.sed" /new/guest/path/to/file
So you should be able to run, for example:
sed -i~ -f /etc/xen-tools/sed.d/etc/sysctl.conf.sed /etc/sysctl.conf
For example, to test your edit on your host system.
> Role: editor
> File: /etc/xen-tools/role.d/editor
> /etc/xen-tools/role.d/editor: line 80: logPrint: command not found
That looks weird.
> sed: file /etc/xen-tools/sed.d/etc/sysctl.conf.sed line 1: extra
> characters after command
(Your line of text is being intepreted as a sed command.)
> Any ideas or more guidance?
I hope that helped a little..
Steve
--
More information about the xen-tools-discuss
mailing list