From owner-freebsd-bugs@FreeBSD.ORG Mon Nov 19 04:10:03 2007 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BEE8B16A41A for ; Mon, 19 Nov 2007 04:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9CCF513C467 for ; Mon, 19 Nov 2007 04:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id lAJ4A164017760 for ; Mon, 19 Nov 2007 04:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id lAJ4A1oL017759; Mon, 19 Nov 2007 04:10:01 GMT (envelope-from gnats) Resent-Date: Mon, 19 Nov 2007 04:10:01 GMT Resent-Message-Id: <200711190410.lAJ4A1oL017759@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, Steve Wills Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 51CEC16A468 for ; Mon, 19 Nov 2007 04:06:19 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 3F6F013C467 for ; Mon, 19 Nov 2007 04:06:19 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.1/8.14.1) with ESMTP id lAJ45cf4012549 for ; Mon, 19 Nov 2007 04:05:38 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.1/8.14.1/Submit) id lAJ45cKX012547; Mon, 19 Nov 2007 04:05:38 GMT (envelope-from nobody) Message-Id: <200711190405.lAJ45cKX012547@www.freebsd.org> Date: Mon, 19 Nov 2007 04:05:38 GMT From: Steve Wills To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/118113: mdconfig init script requires image to be on root file system 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: Mon, 19 Nov 2007 04:10:03 -0000 >Number: 118113 >Category: misc >Synopsis: mdconfig init script requires image to be on root file system >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Nov 19 04:10:01 UTC 2007 >Closed-Date: >Last-Modified: >Originator: Steve Wills >Release: 7.0-BETA3 >Organization: >Environment: >Description: /etc/rc.d/mdconfig requires that images be on the root file system. This script would be good for having images of jails mounted at boot, but I don't want to keep them on root file system, nor do I have room. Most users don't have room either, given the default root fs size(s). It might also be useful for having an ISO image mounted at boot. Is there a reason for the requirement that the image be on the root file system? Also, even if the file is on /, and you apply the patch in PR conf/118035, you still get this error: # /etc/rc.d/mdconfig start Creating md0 device (vnode). fsck: Could not determin filesystem type Fsck failed on /dev/md0, not mounting the filesystem. >How-To-Repeat: dd if=/dev/zero of=/tmp/jail.img bs=1 count=1 seek=2147483648 echo 'mdconfig_md0="-f /tmp/jail.img"' >> /etc/rc.conf /etc/rc.d/mdconfig start (This also returns no error, which may also be considered a bug). >Fix: Remove the check for root filesystem, add filessytem type of fsck command for UFS images, remove fsck all together for ISO images. >Release-Note: >Audit-Trail: >Unformatted: