Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Jun 2011 23:10:54 GMT
From:      Robert Simmons <rsimmons0@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/157933: Install script fails when /root is mounted as its own partition
Message-ID:  <201106162310.p5GNAsba049839@red.freebsd.org>
Resent-Message-ID: <201106162320.p5GNK5eV065789@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106162310.p5GNAsba049839>