kern/157933: Install script fails when /root is mounted as its own
rsimmons0 at gmail.com
Thu Jun 16 23:20:07 UTC 2011
>Synopsis: Install script fails when /root is mounted as its own partition
>Arrival-Date: Thu Jun 16 23:20:05 UTC 2011
>Originator: Robert Simmons
FreeBSD 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011 root at mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
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.
Boot from install CD.
Create partitions for the following mount points:
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
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