remove the comment from context.sh
|Category:||Core & System|
Hi there,When I do the contexualization for the Windows VMs, I need to read the
content of the context.sh file from the ISO image.
However, this file contains a comment at its first line:
- Context variables generated by OpenNebula
This can be ignored on Linux by a shell script but NOT on Windows by a VBScript.
The rest of the variable assignments have the same syntax on both systems.
So maybe the easiest solution is to remove this comment line. In
addition, to make it more universal,we may rename the file from
context.sh into context.txt or purely context.
Otherwise, we could provide different content files for different OS.
I hope this is easy to do as well.
Thank you very much.
#2 Updated by Shi Jin over 11 years ago
I thought this would fix it
//file << "# Context variables generated by OpenNebula\n";
however, this line keeps showing up.
I did "scons -c; scons; install -k -d $ONE_LOCATION" many times but the comment line keeps showing up.
#3 Updated by Ruben S. Montero over 11 years ago
- Category set to Core & System
- Target version set to Release 1.4.2
That should do the trick. I am sure you have already go through this, but please check that tou have recompiled, installed and that you are executing the right oned.
We are about to release 1.4beta2, moving this feature to 1.4.2...