Lines 12-18
Link Here
|
12 |
<mail link="citizen428@gentoo.org">Michael Kohl</mail> |
12 |
<mail link="citizen428@gentoo.org">Michael Kohl</mail> |
13 |
</author> |
13 |
</author> |
14 |
<author title="Author"> |
14 |
<author title="Author"> |
15 |
Otavio R. Piske |
15 |
<mail link="angusyoung@gentoo.org">Otavio R. Piske</mail> |
16 |
</author> |
16 |
</author> |
17 |
<author title="Author"> |
17 |
<author title="Author"> |
18 |
<mail link="ka0ttic@gentoo.org">Aaron Walker</mail> |
18 |
<mail link="ka0ttic@gentoo.org">Aaron Walker</mail> |
Lines 153-161
Link Here
|
153 |
</p> |
153 |
</p> |
154 |
|
154 |
|
155 |
<pre caption="Creating a mount point and mounting partitions"> |
155 |
<pre caption="Creating a mount point and mounting partitions"> |
156 |
# <i>mkdir /mnt/gfbsd</i> |
156 |
# <i>mkdir /mnt/gentoo</i> |
157 |
<comment>(Replace X with the correct numbers for your hard disk.)</comment> |
157 |
<comment>(Replace X with the correct numbers for your hard disk.)</comment> |
158 |
# <i>mount /dev/adXsXa /mnt/gfbsd</i> |
158 |
# <i>mount /dev/adXsXa /mnt/gentoo</i> |
159 |
</pre> |
159 |
</pre> |
160 |
|
160 |
|
161 |
<p> |
161 |
<p> |
Lines 164-188
Link Here
|
164 |
</p> |
164 |
</p> |
165 |
|
165 |
|
166 |
<pre caption="Obtaining and unpacking a stage3 tarball"> |
166 |
<pre caption="Obtaining and unpacking a stage3 tarball"> |
|
|
167 |
# <i>cd /mnt/gentoo/</i> |
167 |
<comment>(Any other Gentoo mirror which includes the experimental/ directory will also work.)</comment> |
168 |
<comment>(Any other Gentoo mirror which includes the experimental/ directory will also work.)</comment> |
168 |
# <i>wget http://gentoo.osuosl.org/experimental/x86/freebsd/stage3-x86-fbsd-20051005.tar.bz2</i> |
169 |
# <i>wget http://gentoo.osuosl.org/experimental/x86/freebsd/stages/stage3-x86-fbsd-20051005.tar.bz2</i> |
169 |
# <i>cp stage3-x86-fbsd-20051005.tar.bz2 /mnt/gfbsd/</i> |
|
|
170 |
# <i>cd /mnt/gfbsd/</i> |
171 |
# <i>tar -jxvpf stage3-x86-fbsd-20051005.tar.bz2</i> |
170 |
# <i>tar -jxvpf stage3-x86-fbsd-20051005.tar.bz2</i> |
|
|
171 |
<comment>(A wrong make.conf was packaged with the current stage3 tarball. We'll now remove it.)</comment> |
172 |
# <i>rm -f /mnt/gentoo/etc/make.conf</i> |
172 |
<comment>(You can delete the tarball with the following command if you want to.)</comment> |
173 |
<comment>(You can delete the tarball with the following command if you want to.)</comment> |
173 |
# <i>rm stage3-x86-fbsd-20051005.tar.bz2</i> |
174 |
# <i>rm stage3-x86-fbsd-20051005.tar.bz2</i> |
174 |
<comment>(Create a home directory for root.)</comment> |
|
|
175 |
# <i>mkdir /mnt/gfbsd/root</i> |
176 |
</pre> |
175 |
</pre> |
177 |
|
176 |
|
178 |
<p> |
177 |
<p> |
179 |
Before chrooting into the newly-extracted stage, you first must obtain an up-to-date |
178 |
Before chrooting into the newly-extracted stage, you first must obtain an up-to-date |
180 |
copy of the Gentoo/FreeBSD overlay. The easiest way to achieve this is to to get our latest |
179 |
copy of the Gentoo/FreeBSD overlay. The easiest way to achieve this is to to get our latest |
181 |
snapshot which you than extract to <path>/usr/local/portage</path>. |
180 |
snapshot which you than extract to <path>/mnt/gentoo/usr/local/portage</path> |
182 |
</p> |
181 |
</p> |
183 |
|
182 |
|
184 |
<pre caption="Getting the Gentoo/FreeBSD portage overlay"> |
183 |
<pre caption="Getting the Gentoo/FreeBSD portage overlay"> |
185 |
# <i>cd /usr/local/portage</i> |
184 |
# <i>mkdir /mnt/gentoo/usr/local/portage</i> |
|
|
185 |
# <i>cd /mnt/gentoo/usr/local/portage</i> |
186 |
# <i>wget http://gentoo.osuosl.org/experimental/snapshots/portage-alt-overlay-latest.tar.bz2</i> |
186 |
# <i>wget http://gentoo.osuosl.org/experimental/snapshots/portage-alt-overlay-latest.tar.bz2</i> |
187 |
# <i>tar -xjf portage-alt-overlay-latest.tar.bz2</i> |
187 |
# <i>tar -xjf portage-alt-overlay-latest.tar.bz2</i> |
188 |
</pre> |
188 |
</pre> |
Lines 201-208
Link Here
|
201 |
</p> |
201 |
</p> |
202 |
|
202 |
|
203 |
<pre caption="Mounting the /dev filesystem and chrooting"> |
203 |
<pre caption="Mounting the /dev filesystem and chrooting"> |
204 |
# <i>mount -t devfs none /mnt/gfbsd/dev/</i> |
204 |
# <i>mount -t devfs none /mnt/gentoo/dev/</i> |
205 |
# <i>chroot /mnt/gfbsd/ /bin/bash</i> |
205 |
# <i>cp /etc/resolv.conf /mnt/gentoo/etc</i> |
|
|
206 |
# <i>chroot /mnt/gentoo/ /bin/bash</i> |
206 |
# <i>source /etc/profile</i> |
207 |
# <i>source /etc/profile</i> |
207 |
</pre> |
208 |
</pre> |
208 |
|
209 |
|
Lines 230-235
Link Here
|
230 |
|
231 |
|
231 |
<pre caption="Obtaining the portage tree"> |
232 |
<pre caption="Obtaining the portage tree"> |
232 |
# <i>emerge --sync</i> |
233 |
# <i>emerge --sync</i> |
|
|
234 |
<comment>(It's also possible to retrieve the Portage tree in another way:)</comment> |
235 |
# <i>cd /</i> |
236 |
# <i>wget http://gentoo.osuosl.org/snapshots/portage-latest.tar.bz2</i> |
237 |
# <i>tar -xjf portage-latest.tar.bz2 -C /usr/</i> |
233 |
</pre> |
238 |
</pre> |
234 |
|
239 |
|
235 |
<p> |
240 |
<p> |
Lines 254-261
Link Here
|
254 |
<comment>(Leave the chroot environment)</comment> |
259 |
<comment>(Leave the chroot environment)</comment> |
255 |
# <i>exit</i> |
260 |
# <i>exit</i> |
256 |
<comment>(Issued from outside the chroot)</comment> |
261 |
<comment>(Issued from outside the chroot)</comment> |
257 |
# <i>fdisk -b -B /mnt/gfbsd/boot/boot0 /dev/adX</i> |
262 |
# <i>fdisk -b -B /mnt/gentoo/boot/boot0 /dev/adX</i> |
258 |
# <i>chroot /mnt/gfbsd /bin/bash</i> |
263 |
# <i>chroot /mnt/gentoo /bin/bash</i> |
259 |
# <i>disklabel -B adXsY</i> |
264 |
# <i>disklabel -B adXsY</i> |
260 |
</pre> |
265 |
</pre> |
261 |
|
266 |
|