From owner-svn-src-head@FreeBSD.ORG Mon May 11 22:12:14 2015 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2D698A1D; Mon, 11 May 2015 22:12:14 +0000 (UTC) Received: from mx1.stack.nl (relay04.stack.nl [IPv6:2001:610:1108:5010::107]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "mailhost.stack.nl", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id E42B51364; Mon, 11 May 2015 22:12:13 +0000 (UTC) Received: from snail.stack.nl (snail.stack.nl [IPv6:2001:610:1108:5010::131]) by mx1.stack.nl (Postfix) with ESMTP id 85AD4B805F; Tue, 12 May 2015 00:12:10 +0200 (CEST) Received: by snail.stack.nl (Postfix, from userid 1677) id 7023628494; Tue, 12 May 2015 00:12:10 +0200 (CEST) Date: Tue, 12 May 2015 00:12:10 +0200 From: Jilles Tjoelker To: Oliver Pinter Cc: John Baldwin , Xin LI , "svn-src-head@freebsd.org" , "svn-src-all@freebsd.org" , "src-committers@freebsd.org" Subject: Re: svn commit: r282672 - head/etc/rc.d Message-ID: <20150511221210.GA65008@stack.nl> References: <201505082336.t48NaWRS080408@svn.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 May 2015 22:12:14 -0000 On Sun, May 10, 2015 at 11:32:27PM +0200, Oliver Pinter wrote: > > tr is in /usr/bin so this breaks systems with a separate /usr. > > Perhaps you could use dd with conv=lcase instead? > Then these are affected too:: > root@robot rc.d# grep -r -E '(awk| tr )' * > ftp-proxy: ps_pid=`ps ax -o pid= -o command= | > grep $cmd_string | grep -e "$flag_string" | grep -v grep | awk '{ > print $1 }'` > growfs: rootdev=$(df / | tail -n 1 | awk '{ sub("/dev/", "", $1); print $1 }') > growfs: rawdev=$(glabel status | awk '$1 == "'"$rootdev"'" { > print $3 }') > growfs: sysctl -b kern.geom.conftxt | awk ' > jail: _j=$(echo $_j | tr /. _) > jail: _j=$(echo $1 | tr /. _) > jail: _j=$(echo $_j | tr /. _) > jail: _j=$(echo $_j | tr /. _) > jail: _j=$(echo $_j | tr /. _) > motd: awk '{if (NR == 1) {if ($1 == "FreeBSD") {next} else {print > "\n"$0}} else {print}}' < /etc/motd >> ${T} > ntpdate: ntpdate_hosts=`awk ' > power_profile: awk '{ split($0, a, "[/ ]"); print a[1] }' -) 2> /dev/null`" > power_profile: awk '{ split($0, a, "[/ ]"); print a[length(a) - 1] }' > -) 2> /dev/null`" > sshd: local ALG="$(echo $alg | tr a-z A-Z)" > syscons: for i in `kldstat | awk '$5 ~ "_saver\.ko$" { > print $5 }'`; do > syslogd: for _s in `cat $sockfile | tr '\n' ' '` ; do > virecover: recfile=`awk > '/^X-vi-recover-path:/{print $2}' < "${i}"` > The awk is located in /usr/bin/awk too, and for e.g. the growfs should > running in the very first steps... Except for growfs and power_profile, these already REQUIRE mountcritremote or FILESYSTEMS (directly or indirectly), or critically depend on software in /usr like /usr/sbin/ftp-proxy or /usr/sbin/jail. The problem with growfs was explained elsewhere in the thread. Although power_profile appears to have an appropriate REQUIRE line, it is in fact started via devd, which happens fairly early. -- Jilles Tjoelker