conf/95654: [PATCH] /etc/rc.subr should use absolute path for those in /usr/bin

Rong-En Fan rafan at
Wed Apr 12 14:40:19 UTC 2006

>Number:         95654
>Category:       conf
>Synopsis:       [PATCH] /etc/rc.subr should use absolute path for those in /usr/bin
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 12 14:40:16 GMT 2006
>Originator:     Rong-En Fan
>Release:        FreeBSD 7.0-CURRENT i386
System: FreeBSD 7.0-CURRENT FreeBSD 7.0-CURRENT #21: Tue Apr 11 22:22:56 EDT 2006 root at i386

	After upgrading to Apr 11's current, I got some command not 
	found when booting

pcm0: measured ac97 link rate at 48004 Hz, will use 48000 Hz
Trying to mount root from ufs:/dev/ad0s3a
WARNING: / was not properly dismounted
start_init: trying /sbin/init
tail: not found
tr: not found
Loading configuration files.
kernel dumps on /dev/ad0s3b
Entropy harvesting:
swapon: adding /dev/ad0s3b as swap device
Starting file system checks:

	The change in rc.subr 1.54 causes this:
	I think in rc.subr it should be absolute patch for binaries
	in /usr/bin, just like the rest of the file.

	Upgrade to Apr 11's current with /etc/rc.subr rev 1.54


--- rc.subr.orig	Wed Apr 12 10:26:35 2006
+++ rc.subr	Wed Apr 12 10:27:08 2006
@@ -54,7 +54,7 @@
 CMD_OSTYPE="${SYSCTL_N} kern.ostype"
-JID=`ps -p $$ -o jid | tail -1 | tr -d ' '`
+JID=`ps -p $$ -o jid | /usr/bin/tail -1 | /usr/bin/tr -d ' '`
 IDCMD="if [ -x $ID ]; then $ID -un; fi"
 case ${OSTYPE} in


More information about the freebsd-bugs mailing list