Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Apr 2006 10:39:22 -0400 (EDT)
From:      Rong-En Fan <rafan@infor.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        flz@FreeBSD.org
Subject:   conf/95654: [PATCH] /etc/rc.subr should use absolute path for those in /usr/bin
Message-ID:  <200604121439.k3CEdMI8001760@woodstock.rafan.org>
Resent-Message-ID: <200604121440.k3CEeHo1062486@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604121439.k3CEdMI8001760>