Re: [one-users] vmcontext in one-context never executes init.sh from context iso

2013-01-22 Thread Javier Fontan
I also think it is better to make the file executable. I'll check the
ISO extensions and test if we can add executable permissions there.
Having an executable is better as this init.sh script can be executed
by anything, just setting the shebang.

On Tue, Jan 22, 2013 at 1:20 PM, Rolandas Naujikas
 wrote:
> On 2013-01-22 14:13, Rolandas Naujikas wrote:
>>
>> On 2013-01-22 14:10, Valentin Bud wrote:
>>>
>>> On Tue, Jan 22, 2013 at 1:48 PM, Rolandas Naujikas
>>> mailto:rolandas.nauji...@mif.vu.lt>> wrote:
>>>
>>> Hi,
>>>
>>> Because all files in context iso are not executable, then
>>> /mnt/init.sh line is never executed in /etc/init.d/vmcontext.
>>>
>>> Regards, Rolandas Naujikas
>>> _
>>> Users mailing list
>>> Users@lists.opennebula.org 
>>> http://lists.opennebula.org/__listinfo.cgi/users-opennebula.__org
>>> 
>>>
>>>
>>> Hello World,
>>>
>>> A fix could be to run the script using bash /mnt/init.sh. Do you people
>>> think that could lead to problems? As far as I know Bash is present in
>>> all Linux distribution OpenNebula runs on.
>>
>>
>> Better would be sh, because it is lighter (in Debian at least).
>
>
> I think better solution would be
>
> exec_and_log "chmod +x $ISO_DIR/*" "chmod +x error"
>
> in every remotes/tm/*/context script just before creating iso image.
>
> Regards, Rolandas Naujikas
>
>
>> Rolandas
>>
>>> Regards,
>>> Valentin Bud
>>>
>>
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org



-- 
Javier Fontán Muiños
Project Engineer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | jfon...@opennebula.org | @OpenNebula
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] vmcontext in one-context never executes init.sh from context iso

2013-01-22 Thread Rolandas Naujikas

On 2013-01-22 14:13, Rolandas Naujikas wrote:

On 2013-01-22 14:10, Valentin Bud wrote:

On Tue, Jan 22, 2013 at 1:48 PM, Rolandas Naujikas
mailto:rolandas.nauji...@mif.vu.lt>> wrote:

Hi,

Because all files in context iso are not executable, then
/mnt/init.sh line is never executed in /etc/init.d/vmcontext.

Regards, Rolandas Naujikas
_
Users mailing list
Users@lists.opennebula.org 
http://lists.opennebula.org/__listinfo.cgi/users-opennebula.__org



Hello World,

A fix could be to run the script using bash /mnt/init.sh. Do you people
think that could lead to problems? As far as I know Bash is present in
all Linux distribution OpenNebula runs on.


Better would be sh, because it is lighter (in Debian at least).


I think better solution would be

exec_and_log "chmod +x $ISO_DIR/*" "chmod +x error"

in every remotes/tm/*/context script just before creating iso image.

Regards, Rolandas Naujikas


Rolandas


Regards,
Valentin Bud





___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] vmcontext in one-context never executes init.sh from context iso

2013-01-22 Thread Rolandas Naujikas

On 2013-01-22 14:10, Valentin Bud wrote:

On Tue, Jan 22, 2013 at 1:48 PM, Rolandas Naujikas
mailto:rolandas.nauji...@mif.vu.lt>> wrote:

Hi,

Because all files in context iso are not executable, then
/mnt/init.sh line is never executed in /etc/init.d/vmcontext.

Regards, Rolandas Naujikas
_
Users mailing list
Users@lists.opennebula.org 
http://lists.opennebula.org/__listinfo.cgi/users-opennebula.__org



Hello World,

A fix could be to run the script using bash /mnt/init.sh. Do you people
think that could lead to problems? As far as I know Bash is present in
all Linux distribution OpenNebula runs on.


Better would be sh, because it is lighter (in Debian at least).

Rolandas


Regards,
Valentin Bud



___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] vmcontext in one-context never executes init.sh from context iso

2013-01-22 Thread Valentin Bud
On Tue, Jan 22, 2013 at 1:48 PM, Rolandas Naujikas <
rolandas.nauji...@mif.vu.lt> wrote:

> Hi,
>
> Because all files in context iso are not executable, then /mnt/init.sh
> line is never executed in /etc/init.d/vmcontext.
>
> Regards, Rolandas Naujikas
> __**_
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**org
>

Hello World,

A fix could be to run the script using bash /mnt/init.sh. Do you people
think that could lead to problems? As far as I know Bash is present in all
Linux distribution OpenNebula runs on.

Regards,
Valentin Bud
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] vmcontext in one-context never executes init.sh from context iso

2013-01-22 Thread Rolandas Naujikas

Hi,

Because all files in context iso are not executable, then /mnt/init.sh 
line is never executed in /etc/init.d/vmcontext.


Regards, Rolandas Naujikas
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org