Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Feb 2006 07:56:14 GMT
From:      Paulo Melo <mpmelo@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   conf/93551: Problem with new style rc startup scripts in jails
Message-ID:  <200602190756.k1J7uEhc076434@www.freebsd.org>
Resent-Message-ID: <200602190800.k1J80IUS082470@freefall.freebsd.org>

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

>Number:         93551
>Category:       conf
>Synopsis:       Problem with new style rc startup scripts in jails
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 19 08:00:17 GMT 2006
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



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