Am Mittwoch, 27. Oktober 2010, 22:15:51 schrieb Tom Eastep: > -------- Original Message -------- > Subject: Re: [leaf-devel] Bering-uClibc4: shorewall startup error on > boot - further details > Date: Wed, 27 Oct 2010 13:06:12 -0700 > From: Tom Eastep <teas...@shorewall.net> > To: davidMbrooke <dmb.leaf-de...@ntlworld.com> > > On 10/25/10 1:39 PM, davidMbrooke wrote: > > Hi, > > > > While waiting for a full rebuild with the new GCC I am looking at my > > Shorewall startup problem. > > I added "set -x" to /sbin/shorewall and I can see the cause of the error > > > > messages: > > + run_it /var/lib/shorewall/.start start > > + local script > > + local options > > + local version > > + export VARDIR > > + script=/var/lib/shorewall/.start > > + shift > > + get_script_version /var/lib/shorewall/.start > > + local temp > > + local version > > + local ifs > > + local digits > > + /bin/sh /var/lib/shorewall/.start version > > + sed s/-.*// > > + temp=Processing /etc/shorewall/params ... > > 4.4.13.1 > > + [ 0 -ne 0 ] > > + ifs= > > > > + IFS=. > > + echo Processing /etc/shorewall/params ... > > 4 4 13 1 > > + temp=Processing /etc/shorewall/params ... > > 4 4 13 1 > > + IFS= > > > > + digits=0 > > + printf %02d Processing > > sh: Processing: invalid number > > > > etc. > > > > The corresponding code (from /var/lib/shorewall/.start) is: > > # > > # Get the Shorewall version of the passed script > > # > > get_script_version() { # $1 = script > > > > local temp > > local version > > local ifs > > local digits > > > > temp=$( $SHOREWALL_SHELL $1 version | sed 's/-.*//' ) > > > > if [ $? -ne 0 ]; then > > > > version=0 > > > > else > > > > ifs=$IFS > > IFS=. > > temp=$(echo $temp) > > IFS=$ifs > > digits=0 > > > > for temp in $temp; do > > > > version=${version}$(printf '%02d' $temp) > > > > In summary, the output from "/var/lib/shorewall/.start version" is being > > seen as "Processing /etc/shorewall/params ...<CR>4.4.13.1" rather than > > simply "4.4.13.1". The "Processing ..." message is being generated by > > function progress_message2() in /var/lib/shorewall/.start > > Is /etc/init.d/shorewall exporting the VERBOSITY variable? > > > A possibly related problem is the contents of /var/log/shorewall.log: > > Oct 25 19:23:42 Compiling iptables-restore input for chain > > > > mangle:... > > > > Oct 25 19:23:42 Shorewall configuration compiled > > > > to /var/lib/shorewall/.start > > > > Oct %_d 19:23:42 Processing /etc/shorewall/params ... > > Oct %_d 19:23:42 Processing /etc/shorewall/params ... > > > > Note the "%_d". Perhaps it is a coincidence that > > "Processing /etc/shorewall/params ..." is in both messages? > > That's a bug that is fixed in the 4.4.14 Betas and RC1. > > -Tom
Tom; I've installed 4.4.14rc1 in my test env and changed init to init.sh from shorewall-4.4.14-rc1 without modifications. (there are still traces of the minor error "Oct %_d 19:23:42", but that doesn't bother me currently). When I start shorewall during boot it fails as written above, once I login and run /etc/init.d/shorewall start it starts without errors. I don't know why, but I see a difference with debug enabled (set -x). Here's the relevant(?) output of shorewall start during boot: script=/var/lib/shorewall/.start shift get_script_version /var/lib/shorewall/.start local temp local version local ifs local digits /bin/sh /var/lib/shorewall/.start version sed s/-.*// temp=Processing /etc/shorewall/params ... 4.4.14 ... The output from /etc/init.d/shorewall start after login: script=/var/lib/shorewall/.start shift get_script_version /var/lib/shorewall/.start local temp local version local ifs local digits /bin/sh /var/lib/shorewall/.start version sed s/-.*// temp=4.4.14 ... The difference is the latest value for temp, as you may see. Let me know, if more info is needed. Any ideas, how this can be solved? TIA kp ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ leaf-devel mailing list leaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/leaf-devel