conf/95654: [PATCH] /etc/rc.subr should use absolute path for those
in /usr/bin
Rong-En Fan
rafan at infor.org
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
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Apr 12 14:40:16 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Rong-En Fan
>Release: FreeBSD 7.0-CURRENT i386
>Organization:
NTU CSIE
>Environment:
System: FreeBSD woodstock.rafan.org 7.0-CURRENT FreeBSD 7.0-CURRENT #21: Tue Apr 11 22:22:56 EDT 2006 root at woodstock.rafan.org:/home/admin/usr/obj/home/admin/usr/src/sys/WOODSTOCK i386
>Description:
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:
interrupts
ethernet
point_to_point
kickstart
.
swapon: adding /dev/ad0s3b as swap device
Starting file system checks:
[...]
The change in rc.subr 1.54 causes this:
http://www.freebsd.org/cgi/cvsweb.cgi/src/etc/rc.subr.diff?r1=1.53&r2=1.54
I think in rc.subr it should be absolute patch for binaries
in /usr/bin, just like the rest of the file.
>How-To-Repeat:
Upgrade to Apr 11's current with /etc/rc.subr rev 1.54
>Fix:
--- 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"
OSTYPE=`${CMD_OSTYPE}`
ID="/usr/bin/id"
-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
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list