[Glass] Problem with `create_gs_server_image` in latest gsDevKit_home

Dale Henrichs via Glass glass at lists.gemtalksystems.com
Tue Nov 21 09:22:36 PST 2017


I don't quite understand under what conditions you get an error ... and 
what the error is?

What options are you using and what does the output look like when it 
fails ...

Dale


On 11/21/17 5:05 AM, Mariano Martinez Peck via Glass wrote:
> Hi Dale,
>
> I have just updated to latest GsDevKit release and I am trying to 
> re-build the devKit images. However, there is a problem. I tracked it 
> down up to this line:
>
>
>  ❯ ./create_gs_server_image -f -d 
> /opt/gemstoneAdditions/GsDevKit_home/shared/pharo gsDevKitCommandLine
>
> The problem is that that script, even if at the very beginning it 
> correctly sets `initialImageName=Pharo.image` when we are in case 
> `gsDevKitCommandLine`, but at the end of the switch case, you set 
> `imageName=${imageBaseName}.image`. Therefore, $imageName  would 
> resolve to `gsDevKitCommandLine.image`. Obviously, in 
> `$GS_HOME/shared/pharo` I only have Pharo.image and not 
> gsDevKitCommandLine.image.
>
> Finally, this is the failing code which tries to open an image that 
> doesn't exist:
>
> if [ "${force}" = "true" ] ; then
>   "$pharoCmd" "$directoryPath/$imageName" save gsDevKitTmp
> else
>   "$pharoCmd" "$directoryPath/$initialImageName" save gsDevKitTmp
> fi
>
> BTW the console shows "create" as per $message variable.
>
> Conclusion: if I remove the "-f" argument, it does work, obviously, 
> but then it means it is not always safe to simply follow the 
> instructions of `$GS_HOME/bin/updateGsDevKit -ti` as the `-i` would 
> fail as in my case.
> I guess we could check if `$directoryPath/$imageName" ` exists, and if 
> not, then use $initialImageName even if -f was passed by...
>
> Thoughts?
>
>
>
>
>
>
> -- 
> Mariano
> http://marianopeck.wordpress.com
>
>
> _______________________________________________
> Glass mailing list
> Glass at lists.gemtalksystems.com
> http://lists.gemtalksystems.com/mailman/listinfo/glass

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20171121/d3ce9f45/attachment.html>


More information about the Glass mailing list