Date: Wed, 12 Apr 2006 16:33:09 +0100 From: Florent Thoumie <flz@FreeBSD.org> To: Brooks Davis <brooks@one-eyed-alien.net> Cc: freebsd-current@freebsd.org, Rong-En Fan <grafan@gmail.com> Subject: Re: tail, tr: not found when booting Message-ID: <1144855989.53943.46.camel@mayday.esat.net> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1144855989.53943.46.camel>