| 1 | <section> |
1 | <section> |
| 2 | <subsection> |
2 | <subsection> |
| 3 | <title>Chrooting</title> |
3 | <title>Chrooting</title> |
|
|
4 | <subsubsection> |
|
|
5 | <title>Optional: Selecting Mirrors</title> |
|
|
6 | <body> |
|
|
7 | |
|
|
8 | <p> |
|
|
9 | If you are booted from a Gentoo LiveCD, you are able to use <c>mirrorselect</c> |
|
|
10 | to update <path>/etc/make.conf</path> so fast mirrors are used for both Portage |
|
|
11 | as source code: |
|
|
12 | </p> |
|
|
13 | |
|
|
14 | <pre caption="Selecting fast mirrors"> |
|
|
15 | # <i>mirrorselect -a -s4 -o >> /mnt/gentoo/etc/make.conf</i> |
|
|
16 | </pre> |
|
|
17 | |
|
|
18 | <p> |
|
|
19 | If for some reason <c>mirrorselect</c> fails, don't panic. This step is |
|
|
20 | completely optional. If <c>mirrorselect</c> fails, the default values suffice. |
|
|
21 | </p> |
|
|
22 | |
|
|
23 | </body> |
|
|
24 | </subsubsection> |
|
|
25 | <subsubsection> |
|
|
26 | <title>Entering the new Environment</title> |
| 4 | <body> |
27 | <body> |
| 5 | |
28 | |
| 6 | <p> |
29 | <p> |
| 7 | Now that all partitions are initialised and the base environment |
30 | Now that all partitions are initialised and the base environment |
| 8 | installed, it is time to enter our new installation environment by |
31 | installed, it is time to enter our new installation environment by |
| 9 | <e>chrooting</e> in it. This means that we change from the current |
32 | <e>chrooting</e> in it. This means that we change from the current |
| 10 | installation environment (namely the LiveCD environment) to your |
33 | installation environment (LiveCD or other installation medium) to your |
| 11 | installation system (namely the initialised partitions). |
34 | installation system (namely the initialised partitions). |
| 12 | </p> |
35 | </p> |
| 13 | |
36 | |
| 14 | <p> |
37 | <p> |
| 15 | This chrooting is done in three steps. First we will change the root |
38 | This chrooting is done in three steps. First we will change the root |
| 16 | from <path>/</path> (on the LiveCD) to <path>/mnt/gentoo</path> (on your |
39 | from <path>/</path> (on the installation medium) to <path>/mnt/gentoo</path> |
| 17 | partitions) using <c>chroot</c>. Then we will create a new environment using |
40 | (on your partitions) using <c>chroot</c>. Then we will create a new environment |
| 18 | <c>env-update</c>, which essentially creates environment variables. |
41 | using <c>env-update</c>, which essentially creates environment variables. |
| 19 | Finally, we load those variables into memory using <c>source</c>. |
42 | Finally, we load those variables into memory using <c>source</c>. |
| 20 | </p> |
43 | </p> |
| 21 | |
44 | |
| 22 | <pre caption = "Chrooting into the new environment"> |
45 | <pre caption = "Chrooting into the new environment"> |
| 23 | # <i>chroot /mnt/gentoo /bin/bash</i> |
46 | # <i>chroot /mnt/gentoo /bin/bash</i> |
| … | |
… | |
| 31 | Ofcourse it is far from finished, which is why the installation still |
54 | Ofcourse it is far from finished, which is why the installation still |
| 32 | has some sections left :-) |
55 | has some sections left :-) |
| 33 | </p> |
56 | </p> |
| 34 | |
57 | |
| 35 | </body> |
58 | </body> |
|
|
59 | </subsubsection> |
|
|
60 | <subsubsection> |
|
|
61 | <title>Optional: Updating Portage</title> |
|
|
62 | <body> |
|
|
63 | |
|
|
64 | <p> |
|
|
65 | If you are <e>not</e> using GRP, you must download a recent Portage snapshot |
|
|
66 | from the Internet. <c>emerge sync</c> does this for you: |
|
|
67 | </p> |
|
|
68 | |
|
|
69 | <pre caption="Updating Portage"> |
|
|
70 | # <i>emerge sync</i> |
|
|
71 | </pre> |
|
|
72 | |
|
|
73 | </body> |
|
|
74 | </subsubsection> |
| 36 | </subsection> |
75 | </subsection> |
| 37 | <subsection> |
76 | <subsection> |
| 38 | <title>Differences between Stage1, Stage2 and Stage3</title> |
77 | <title>Differences between Stage1, Stage2 and Stage3</title> |
| 39 | <body> |
78 | <body> |
| 40 | |
79 | |