Request #171

remove the comment from context.sh

Added by Shi Jin over 11 years ago. Updated about 8 years ago.

Status:ClosedStart date:10/29/2009
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Core & System
Target version:-
Pull request:

Description

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:
  1. 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.

History

#1 Updated by Shi Jin over 11 years ago

Please note the fist line is

# Context variables generated by OpenNebula

#2 Updated by Shi Jin over 11 years ago

I thought this would fix it
src/vm/VirtualMachine.cc:814

//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.
Any ideas?

#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...

#4 Updated by Ruben S. Montero over 11 years ago

  • Tracker changed from Bug to Request

#5 Updated by Ruben S. Montero almost 10 years ago

  • Target version deleted (Release 1.4.2)

#6 Updated by Ruben S. Montero about 8 years ago

  • Status changed from New to Closed

Also available in: Atom PDF