kern/157933: Install script fails when /root is mounted as its own partition

Robert Simmons rsimmons0 at
Thu Jun 16 23:20:07 UTC 2011

>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
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 16 23:20:05 UTC 2011
>Originator:     Robert Simmons
>Release:        8.2-RELEASE
FreeBSD 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011     root at  amd64
If you are installing using a fixit shell and the /dist/8.2-RELEASE/base/ 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.
Boot from install CD.
Create partitions for the following mount points:

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 script.
it will fail when it gets to the point where it extracts the four dotfiles that belong in /root
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


More information about the freebsd-bugs mailing list