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

Rolandas Naujikas rolandas.naujikas at mif.vu.lt
Tue Jan 22 04:20:45 PST 2013


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
>> <rolandas.naujikas at mif.vu.lt <mailto:rolandas.naujikas at 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 at lists.opennebula.org <mailto:Users at lists.opennebula.org>
>>     http://lists.opennebula.org/__listinfo.cgi/users-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
>>
>




More information about the Users mailing list