Script passing and StartupPreferences

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Script passing and StartupPreferences

Sean P. DeNigris
Administrator
It seems that (in 1.4, not sure about 2.0) if an image is launched with a script (e.g. "cogvm my.image my.st"), StartupPreferences are never run. Is that what's intended?

I just realized, for instance, that all my images that were built by my Jenkins server (which pass a script as above) aren't using my shared cache (which is set in the preferences) and are downloading from http every time, yuck...

Cheers,
Sean
Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: Script passing and StartupPreferences

Sean P. DeNigris
Administrator
Sean P. DeNigris wrote
It seems that (in 1.4, not sure about 2.0) if an image is launched with a script (e.g. "cogvm my.image my.st"), StartupPreferences are never run. Is that what's intended?
After experimenting a bit, it seems that preferences are loaded after script arguments are handled, so if the script ends in #snapshot:andQuit:, the prefs never get loaded.

I'm thinking the prefs should be loaded before any scripts. For example, I want my shared cache to be set as the package cache before any load scripts are run.

What do y'all think?

Cheers,
Sean
Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: Script passing and StartupPreferences

fstephany
+1, preferences should be loaded before any laod scripts.

On 09/08/12 12:20, Sean P. DeNigris wrote:

>
> Sean P. DeNigris wrote
>>
>> It seems that (in 1.4, not sure about 2.0) if an image is launched with a
>> script (e.g. "cogvm my.image my.st"), StartupPreferences are never run. Is
>> that what's intended?
>>
>
> After experimenting a bit, it seems that preferences are loaded after script
> arguments are handled, so if the script ends in #snapshot:andQuit:, the
> prefs never get loaded.
>
> I'm thinking the prefs should be loaded before any scripts. For example, I
> want my shared cache to be set as the package cache before any load scripts
> are run.
>
> What do y'all think?
>
> Cheers,
> Sean
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Script passing and StartupPreferences

Camillo Bruni-3
On 2012-08-09, at 22:54, Francois Stephany <[hidden email]> wrote:
> +1, preferences should be loaded before any laod scripts.

indeed, so we have to change the order in the startup list...


> On 09/08/12 12:20, Sean P. DeNigris wrote:
>>
>> Sean P. DeNigris wrote
>>>
>>> It seems that (in 1.4, not sure about 2.0) if an image is launched with a
>>> script (e.g. "cogvm my.image my.st"), StartupPreferences are never run. Is
>>> that what's intended?
>>>
>>
>> After experimenting a bit, it seems that preferences are loaded after script
>> arguments are handled, so if the script ends in #snapshot:andQuit:, the
>> prefs never get loaded.
>>
>> I'm thinking the prefs should be loaded before any scripts. For example, I
>> want my shared cache to be set as the package cache before any load scripts
>> are run.
>>
>> What do y'all think?