Re: [Thinstation-developer] 2.2.2: problem with config files over wget
Brought to you by:
doncuppjr
From: Trevor B. <tre...@us...> - 2011-02-20 18:04:56
|
> Elsewhere Trevor wrote: > > On Thu, Feb 10, 2011 at 1:50 AM, TrevorB > <tre...@us...> wrote: >> On Thu, 2011-02-10 at 01:29 +0100, Tobias Paepke wrote: > [CUT] >>> I see a great potential in having a http-based config and package >>> storage, thats why I did it. Don't want to discuss it anymore if its >>> useless or not for anyone else. >> >> Already in 2.3 and works fine with 2.2 (I have been using it for the >> last 2 years). >> Additional param of baseurl to tell it where to look. >> >> You can use the packages/base/etc/init.d/network_files script from 2.3 >> in 2.2.2f, just make sure you include wget and add >> param baseurl http://<your server> >> into your build.conf > > There must be more to it than this. I took the network_files script > from 2.3 (svn954), recompiled busybox with wget and added this to > build.conf: > > param basepath ts/ > param baseurl http://10.0.0.100/ > > and this to build.conf.buildtime: > > NET_FILE_ENABLED=On > NET_FILE_METHOD=wget > > booting from iso (Virtualbox) and this is a no-go. To debug I added > these two debug lines to network_files: > ********* > transport() > { > local spath=$1 cpath=$2 server=$3 > > # Set default if variable not set > if [ -z "$NET_FILE_METHOD" ] ; then > NET_FILE_METHOD=tftp > fi > > case `make_caps $NET_FILE_METHOD` in > TFTP) > echo "tftp -g -r $spath -l $cpath $server > /dev/null > 2>&1" > ;; > SCP) > echo "scp -BC $NET_FILE_USER@$server:$spath $cpath" > ;; > WGET) > echo_log "\n BASEURL: $BASEURL; SERVER_NAME: $SERVER_NAME; SERVER_IP: > $SERVER_IP \n" -n $debug > echo_log "server: $server; spath: $spath; cpath: $cpath \n" -n $debug > echo "wget -P /tmp $BASEURL" > ;; > esac > } > ********* > In boot.log I get: > ********* > S07network_files > Getting global configuration from (10.0.2.4) > BASEURL: ; SERVER_NAME: ; SERVER_IP: 10.0.2.4 > server: 10.0.2.4; spath: ts//thinstation.conf.network; cpath: > /tmp/thinstation.conf.network > > BusyBox v1.1.3 (2011.02.20-04:33+0000) multi-call binary > > Usage: wget [-c|--continue] [-q|--quiet] [-O|--output-document file] > [--header 'header: value'] [-Y|--proxy on/off] [-P DIR] url > > Not Found > Can't get global configuration file! Using default config > Will continue boot in 5 seconds..... > ********* > so the main problem is that $BASEURL turns up empty. Probably because I forgot to tell you about the change for the build script... after setting basepath if [ -e $PACDIR/baseurl.param ] ; then echo "BASEURL=$ts_baseurl" >> ./tmp-tree/etc/thinstation.defaults fi > It's a bit messy > that it also writes "Getting global configuration from (10.0.2.4)" > but that's cosmetics. 10.0.2.4 is the (virtual) DHCP server in Virtualbox. Yep, needs a fix. Trevor B > > Any ideas someone? > > Mike > -- > Operator of the Danish TS-O-Matic. > http://thinstation.org > - a light, full featured linux based thin client OS > > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > Thinstation-developer mailing list > Thi...@li... > https://lists.sourceforge.net/lists/listinfo/thinstation-developer > |