conf/93551: Problem with new style rc startup scripts in jails

Paulo Melo mpmelo at gmail.com
Sun Feb 19 00:00:19 PST 2006


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


More information about the freebsd-bugs mailing list