Hi Martin,
that seems like a good enhancement to consider. Could you please file
enhancement for this in bugzilla in category
Development/installer/installadm ?
Thank you very much for trying this !
Jan
Martin Ducar wrote:
> Hi,
>
> I have managed to change AI sh support scripts to support FTP protocol
> and verified that it works without any changes on client. Basicaly only
> thing that is changed is port number and replaced http:// with ftp://.
> client is using wget so no need for change on client side. adding diffs
> of /usr/lib/installadm scripts
>
> --------------------------------------------------
>
> # diff -w create-client.bak create-client
> 49a50
>
> 67c68
> < DIRNAME="/usr/lib/installadm"
> ---
>
>> DIRNAME=`dirname $0`
>>
> 205,208c206,209
> < if [ "${PROTOCOL}" != "HTTP" ]; then
> < echo "${myname}: Valid protocols are HTTP and NFS."
> < if [ "${PROTOCOL}" = "NFS" ]; then
> < echo "${myname}: NFS protocol is not supported at this time,"
> ---
>
>> case ${PROTOCOL} in
>> HTTP) ;;
>> FTP) ;;
>> NFS) echo "${myname}: NFS protocol is not supported at this time,"
>>
> 210,213c211,213
> < PROTOCOL="HTTP"
> < fi
> < exit 1
> < fi
> ---
>
>> PROTOCOL="HTTP" ;;
>> *) echo "${myname}: Valid protocols are HTTP, FTP and NFS." ;;
>> esac
>>
>
>
> # diff -w installadm-common.bak installadm-common
> 38a39
> > FTP_PORT=21
> 53c54
> < HOST_IP=`getent hosts ${hname} | nawk '{ print $1 }`
> ---
> > HOST_IP=`getent hosts ${hname} | head -n 1 | nawk '{ print $1 }`
> 129a131,139
> > PROTO="http://"
> > PORT=$HTTP_PORT
> > case ${PROTOCOL} in
> > HTTP) PROTO="http://"
> > PORT=$HTTP_PORT;;
> > FTP) PROTO="ftp://"
> > PORT=$FTP_PORT;;
> > *) ;;
> > esac
> 131c141
> < printf "http://${IMAGE_IP}:${HTTP_PORT}" >> $Menufile
> ---
> > printf "${PROTO}${IMAGE_IP}:${PORT}" >> $Menufile
> 135c145
> < printf "http://${IMAGE_IP}:${HTTP_PORT}" >> $Menufile
> ---
> > printf "${PROTO}${IMAGE_IP}:${PORT}" >> $Menufile
>
> --------------------------------------------------
>
> It is possible then to boot to AI through ftp. ftp server has to be
> properly configured for anonymous login and started. We use ftp as it is
> better for serving large files than http when there is high traffic on
> production machine.
>
> This would be nice to have in new version of AI.
> _______________________________________________
> caiman-discuss mailing list
> caiman-discuss at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/caiman-discuss
>