From owner-freebsd-bugs@FreeBSD.ORG Sun Feb 19 08:00:19 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6D87716A427 for ; Sun, 19 Feb 2006 08:00:19 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A09E943D46 for ; Sun, 19 Feb 2006 08:00:18 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k1J80IT1082471 for ; Sun, 19 Feb 2006 08:00:18 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k1J80IUS082470; Sun, 19 Feb 2006 08:00:18 GMT (envelope-from gnats) Resent-Date: Sun, 19 Feb 2006 08:00:18 GMT Resent-Message-Id: <200602190800.k1J80IUS082470@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Paulo Melo Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AB39116A420 for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: conf/93551: Problem with new style rc startup scripts in jails X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Feb 2006 08:00:19 -0000 >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: