From owner-freebsd-bugs@FreeBSD.ORG Thu Jun 16 23:20:07 2011 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 43453106564A for ; Thu, 16 Jun 2011 23:20:07 +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 002748FC13 for ; Thu, 16 Jun 2011 23:20:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p5GNK5xu065790 for ; Thu, 16 Jun 2011 23:20:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p5GNK5eV065789; Thu, 16 Jun 2011 23:20:05 GMT (envelope-from gnats) Resent-Date: Thu, 16 Jun 2011 23:20:05 GMT Resent-Message-Id: <201106162320.p5GNK5eV065789@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, Robert Simmons Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5FBF01065673 for ; Thu, 16 Jun 2011 23:10:54 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 4F8BA8FC17 for ; Thu, 16 Jun 2011 23:10:54 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p5GNAsLC049840 for ; Thu, 16 Jun 2011 23:10:54 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p5GNAsba049839; Thu, 16 Jun 2011 23:10:54 GMT (envelope-from nobody) Message-Id: <201106162310.p5GNAsba049839@red.freebsd.org> Date: Thu, 16 Jun 2011 23:10:54 GMT From: Robert Simmons To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/157933: Install script fails when /root is mounted as its own partition 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: Thu, 16 Jun 2011 23:20:07 -0000 >Number: 157933 >Category: kern >Synopsis: Install script fails when /root is mounted as its own partition >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jun 16 23:20:05 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Robert Simmons >Release: 8.2-RELEASE >Organization: >Environment: FreeBSD 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: If you are installing using a fixit shell and the /dist/8.2-RELEASE/base/install.sh script it will fail if you have /root mounted as its own partition. I used gpart(8) to make GPT partitions, so it may be GPT related. I did not try this with MBR. >How-To-Repeat: Boot from install CD. Create partitions for the following mount points: / /usr /tmp /var /root newfs / then newfs -U all the others. mount / then create directories for /usr /tmp /var and /root in it. mount each of these in their proper place. export DESTDIR=/mnt (if this is where you mounted /, otherwise replace /mnt with where you mounted /) run the install.sh script. it will fail when it gets to the point where it extracts the four dotfiles that belong in /root >Fix: The four dotfiles are very small, so you can just forgo mounting the /root partition and allow the install script to create this directory itself along with the appropriate files in / Then when the script completes successfully, you can mount the partition destined to be /root somewhere else and move the four dotfiles into it, unmount it then mount it where it needs to be at /root >Release-Note: >Audit-Trail: >Unformatted: