From owner-freebsd-bugs@FreeBSD.ORG Fri May 12 09:00:56 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 B87E516A579 for ; Fri, 12 May 2006 09:00:50 +0000 (UTC) (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 7F68C43D8F for ; Fri, 12 May 2006 09:00:35 +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 k4C90ZVH016082 for ; Fri, 12 May 2006 09:00:35 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k4C90ZEE016081; Fri, 12 May 2006 09:00:35 GMT (envelope-from gnats) Resent-Date: Fri, 12 May 2006 09:00:35 GMT Resent-Message-Id: <200605120900.k4C90ZEE016081@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, m m Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7C52516A401 for ; Fri, 12 May 2006 08:50:25 +0000 (UTC) (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 317EC44245 for ; Fri, 12 May 2006 08:50:25 +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 k4C8oPwC044688 for ; Fri, 12 May 2006 08:50:25 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k4C8oPsE044687; Fri, 12 May 2006 08:50:25 GMT (envelope-from nobody) Message-Id: <200605120850.k4C8oPsE044687@www.freebsd.org> Date: Fri, 12 May 2006 08:50:25 GMT From: m m To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: conf/97166: Bug in /etc/rc.d/jail startup script 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: Fri, 12 May 2006 09:01:21 -0000 >Number: 97166 >Category: conf >Synopsis: Bug in /etc/rc.d/jail startup script >Confidential: no >Severity: critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri May 12 09:00:34 GMT 2006 >Closed-Date: >Last-Modified: >Originator: m m >Release: 6.1 >Organization: >Environment: FreeBSD 6.1-STABLE #14: Thu May 11 23:14:19 EDT 2006 >Description: Using the jail_list feature in rc.conf no longer works for starting up multiple jails at boot time if fstab. files are used for jail fstab. Problem appears to be at or near these lines: # "/etc/fstab.${_j}" will be used for {,u}mount(8) if none is specified. eval jail_fstab=\"\${jail_${_j}_fstab:-${jail_fstab}}\" the first jail starts up correctly, info output: May 12 00:51:29 host root: /etc/rc: INFO: hosting root: /usr/jails/hosting/slash May 12 00:51:29 host root: /etc/rc: INFO: hosting devdir: /usr/jails/hosting/slash/dev May 12 00:51:29 host root: /etc/rc: INFO: hosting fdescdir: /usr/jails/hosting/slash/dev/fd May 12 00:51:29 host root: /etc/rc: INFO: hosting procdir: /usr/jails/hosting/slash/proc May 12 00:51:29 host root: /etc/rc: INFO: hosting ruleset: devfsrules_jail May 12 00:51:29 host root: /etc/rc: INFO: hosting fstab: /etc/fstab.hosting .. May 12 00:51:29 host root: /etc/rc: INFO: Mounting fstab for jail hosting (/etc/fstab.hosting) .. May 12 00:51:30 host root: /etc/rc: INFO: devfs_domount(): mount-point is (/usr/jails/hosting/slash/dev), ruleset is (devfsrules_jail) subsequent jails fail to start up, info output: May 12 00:51:37 host root: /etc/rc: INFO: mysql root: /usr/jails/mysql/slash May 12 00:51:37 host root: /etc/rc: INFO: mysql devdir: /usr/jails/mysql/slash/dev May 12 00:51:37 host root: /etc/rc: INFO: mysql fdescdir: /usr/jails/mysql/slash/dev/fd May 12 00:51:37 host root: /etc/rc: INFO: mysql procdir: /usr/jails/mysql/slash/proc May 12 00:51:37 host root: /etc/rc: INFO: mysql ruleset: devfsrules_jail May 12 00:51:37 host root: /etc/rc: INFO: mysql fstab: /etc/fstab.hosting .. May 12 00:51:37 host root: /etc/rc: INFO: Mounting fstab for jail mysql (/etc/fstab.hosting) .. May 12 00:51:37 host root: /etc/rc: WARNING: devfs_domount(): Unable to mount devfs on /usr/jails/mysql/slash/dev it looks like jail_fstab remains set from the first jail (/etc/fstab.hosting) so second jail never mounts fstab.mysql and dies on devfs_domount(). >How-To-Repeat: >Fix: setting explicit jail_bla_fstab=/etc/fstab.bla will helps. >Release-Note: >Audit-Trail: >Unformatted: