From nobody@FreeBSD.org  Sun Feb 19 07:56:14 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id AB39116A420
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 19 Feb 2006 07:56:14 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 77E8643D49
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 19 Feb 2006 07:56:14 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k1J7uEOg076435
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 19 Feb 2006 07:56:14 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k1J7uEhc076434;
	Sun, 19 Feb 2006 07:56:14 GMT
	(envelope-from nobody)
Message-Id: <200602190756.k1J7uEhc076434@www.freebsd.org>
Date: Sun, 19 Feb 2006 07:56:14 GMT
From: Paulo Melo <mpmelo@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Problem with new style rc startup scripts in jails
X-Send-Pr-Version: www-2.3

>Number:         93551
>Category:       conf
>Synopsis:       Problem with new style rc startup scripts in jails
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    matteo
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 19 08:00:17 GMT 2006
>Closed-Date:    Fri Mar 31 06:28:13 GMT 2006
>Last-Modified:  Fri Mar 31 06:28:13 GMT 2006
>Originator:     Paulo Melo
>Release:        6.1 PRERELEASE (i386 and amd64) also present in 6.0
>Organization:
FEUC / INESC Coimbra
>Environment:
FreeBSD sinex.fe.uc.pt 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Sat Feb 18 13:05:44 WET 2006     root@jazz.fe.uc.pt:/usr/obj/usr/src/sys/SMP  amd64

FreeBSD www.inescc.pt 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Sat Feb 18 12:22:37 WET 2006     root@www.inescc:/usr/obj/usr/src/sys/SMP  i386
>Description:
 On 6.1-PRERELEASE (and also some 6.0 current) the startup script rc has
a bug that prevent it from starting new-style rc scripts in /usr/local/etc/rc.d (and,I believe, the late scripts in /etc/rc.d) in jails.

The problem seems to be that the $early_late_divider (mountcritlocal) is flaged with nojail, and therefore skiped by rcorder. Only afterwords as no divider is
present, /etc/rc assumes that all the scripts are early scripts, and therefore skipped. (All the early scripts are supposed to be started by then).
As the /usr/local/etc/rc.d scripts can only be late scripts, they are SOL...


>How-To-Repeat:
 Startup a jail, and check that any /usr/local/etc/rc.d new style script is not used.


>Fix:
Not sure, but one could either fix rcorder to allow $early_late_divider to not be skipped, or choose an $early_late_divider which isn't -s nojail.


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: matteo 
State-Changed-When: Mon Mar 20 16:25:03 UTC 2006 
State-Changed-Why:  
This should have been fixed by dougb@ with revision 1.336.2.2 . Can you confirm? 


Responsible-Changed-From-To: freebsd-bugs->matteo 
Responsible-Changed-By: matteo 
Responsible-Changed-When: Mon Mar 20 16:25:03 UTC 2006 
Responsible-Changed-Why:  
Grab ownership so I can take care of the feedback 

http://www.freebsd.org/cgi/query-pr.cgi?pr=93551 
State-Changed-From-To: feedback->closed 
State-Changed-By: matteo 
State-Changed-When: Fri Mar 31 06:27:35 UTC 2006 
State-Changed-Why:  
Close, as submitter confirmed it was solved. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=93551 
>Unformatted:
