From owner-freebsd-current@FreeBSD.ORG Wed Apr 12 15:33:23 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B60C216A400; Wed, 12 Apr 2006 15:33:23 +0000 (UTC) (envelope-from flz@FreeBSD.org) Received: from smtp.xbsd.org (xbsd.org [82.233.2.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id CBFF943D60; Wed, 12 Apr 2006 15:33:18 +0000 (GMT) (envelope-from flz@FreeBSD.org) Received: from localhost (localhost.xbsd.org [127.0.0.1]) by smtp.xbsd.org (Postfix) with ESMTP id 769F3119B3; Wed, 12 Apr 2006 17:33:17 +0200 (CEST) Received: from smtp.xbsd.org ([127.0.0.1]) by localhost (srv1.xbsd.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 39055-03; Wed, 12 Apr 2006 17:33:11 +0200 (CEST) Received: from mayday.esat.net (mayday.esat.net [193.95.134.156]) by smtp.xbsd.org (Postfix) with ESMTP id D1AE111974; Wed, 12 Apr 2006 17:33:10 +0200 (CEST) From: Florent Thoumie To: Brooks Davis In-Reply-To: <20060412151816.GE28966@odin.ac.hmc.edu> References: <6eb82e0604112027q557fa36bw692f147913112997@mail.gmail.com> <200604121041.37870.jhb@freebsd.org> <20060412151816.GE28966@odin.ac.hmc.edu> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-aMrTVKABLWFGi+dgeqpN" Date: Wed, 12 Apr 2006 16:33:09 +0100 Message-Id: <1144855989.53943.46.camel@mayday.esat.net> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2.1 FreeBSD GNOME Team Port X-Virus-Scanned: amavisd-new at xbsd.org Cc: freebsd-current@freebsd.org, Rong-En Fan Subject: Re: tail, tr: not found when booting X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Apr 2006 15:33:23 -0000 --=-aMrTVKABLWFGi+dgeqpN Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 2006-04-12 at 08:18 -0700, Brooks Davis wrote: > On Wed, Apr 12, 2006 at 10:41:36AM -0400, John Baldwin wrote: > > On Tuesday 11 April 2006 23:27, Rong-En Fan wrote: > > > Hi, > > >=20 > > > I just upgraded my -currnet to today. I noticed that rc complains abo= ut > > > tail and tr not found: > > >=20 > > > [...] > > > Trying to mount root from ufs:/dev/ad0s3a > > > start_init: trying /sbin/init > > > tail: not found > > > tr: not found > > > Loading configuration files. > > > kernel dumps on /dev/ad0s3b > > > [...] > > >=20 > > > The following line in rc.subr looks suspicious > > >=20 > > > JID=3D`ps -p $$ -o jid | tail -1 | tr -d ' '` > > >=20 > > > They should be replaced by absolute name as the rest command in > > > rc.subr. :-) > >=20 > > You don't have tail and tr in /usr/bin? Hmm, I wonder if /usr is > > mounted at that point, if not then rc.subr needs to be fixed. >=20 > You can't do anything with /usr this early. This needs to be > moved to _find_processes() where it's actually used. I suspect it > should also be converted to pure shell code. I think this would work: >=20 > for ent in `ps -p $$ -o jid`; do > JID=3D$ent=20 > done Oops, indeed. I've been over-confident thinking tr/tail were in /, and testing stop/start obviously didn't help. I can't think of another way to do this. --=20 Florent Thoumie flz@FreeBSD.org FreeBSD Committer --=-aMrTVKABLWFGi+dgeqpN Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQBEPR21MxEkbVFH3PQRAk7KAJ9BXdKzNC+MWnLmzd6MG8eprw/GfQCeM/jg s++Dbo1XXbQO4KAHSNGnC3o= =u5vM -----END PGP SIGNATURE----- --=-aMrTVKABLWFGi+dgeqpN--