[xen-tools-discuss] using editor role
Cruzio Research
research at cruzio.com
Thu Jul 16 22:41:33 CEST 2009
Steve Kemp wrote:
>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.
>
>
Okay, now I understand. Doing this in the file works just fine:
$ a\
xen.independent_wallclock=1
>
>
>>Role: editor
>> File: /etc/xen-tools/role.d/editor
>>/etc/xen-tools/role.d/editor: line 80: logPrint: command not found
>>
>>
>
> That looks weird.
>
>
>
I think it's an bug in the original editor role file. It should be
logMessage, but it's in there as logPrint.
>>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
>--
>
>
>
That helped entirely. Thanks!
More information about the xen-tools-discuss
mailing list