From nobody@FreeBSD.org  Thu Jun 16 23:10:54 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 5FBF01065673
	for <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <rsimmons0@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Install script fails when /root is mounted as its own partition
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         157933
>Category:       kern
>Synopsis:       Install script fails when /root is mounted as its own partition
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    delphij
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 16 23:20:05 UTC 2011
>Closed-Date:    Tue Aug 23 22:53:15 UTC 2011
>Last-Modified:  Tue Aug 23 22:53:15 UTC 2011
>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:
State-Changed-From-To: open->closed 
State-Changed-By: delphij 
State-Changed-When: Tue Aug 23 22:47:25 UTC 2011 
State-Changed-Why:  
These install.sh scripts are merely provided for user convenience 
and they are not part of the installer.  What they do is to use 
tar to extract from concatenate of several splitted pieces of 
installation files and tar would give error messages if a hard 
link can not be created (because a split /root means it would be 
a cross-device link which is not permitted) but it would proceed 
with the files and not stop there. 

Therefore, this really don't affect installation except the two 
files that are traditionally hard link from / to /root so what 
is really being lack of are the two potentionally cross-device 
links and nothing more. 

Note that /root in a split partition is not recommended anyways, 
since you may run into problem in single user mode.  If you really 
need that, what we suggest would be to create the partition after 
the installation and copy files over. 


Responsible-Changed-From-To: freebsd-bugs->delphij 
Responsible-Changed-By: delphij 
Responsible-Changed-When: Tue Aug 23 22:47:25 UTC 2011 
Responsible-Changed-Why:  
Grab. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=157933 
>Unformatted:
