| 1 | <?xml version='1.0' encoding='UTF-8'?> |
1 | <?xml version='1.0' encoding='UTF-8'?> |
| 2 | <!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
2 | <!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
| 3 | |
3 | |
| 4 | <!-- The content of this document is licensed under the CC-BY-SA license --> |
4 | <!-- The content of this document is licensed under the CC-BY-SA license --> |
| 5 | <!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
5 | <!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
| 6 | |
6 | |
| 7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/Attic/hb-install-mips-system.xml,v 1.11 2012/06/29 16:12:20 swift Exp $ --> |
7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/Attic/hb-install-mips-system.xml,v 1.12 2013/01/02 19:28:52 swift Exp $ --> |
| 8 | |
8 | |
| 9 | <sections> |
9 | <sections> |
| 10 | |
10 | |
| 11 | <version>11</version> |
11 | <version>13</version> |
| 12 | <date>2012-06-29</date> |
12 | <date>2013-01-03</date> |
| 13 | |
13 | |
| 14 | <section> |
14 | <section> |
| 15 | <title>Chrooting</title> |
15 | <title>Chrooting</title> |
| 16 | <subsection> |
16 | <subsection> |
| 17 | <title>Copy DNS Info</title> |
17 | <title>Copy DNS Info</title> |
| 18 | <body> |
18 | <body> |
| 19 | |
19 | |
| 20 | <p> |
20 | <p> |
| 21 | One thing still remains to be done before we enter the new environment and that |
21 | One thing still remains to be done before we enter the new environment and that |
| 22 | is copying over the DNS information in <path>/etc/resolv.conf</path>. You need |
22 | is copying over the DNS information in <path>/etc/resolv.conf</path>. You need |
| 23 | to do this to ensure that networking still works even after entering the new |
23 | to do this to ensure that networking still works even after entering the new |
| 24 | environment. <path>/etc/resolv.conf</path> contains the nameservers for your |
24 | environment. <path>/etc/resolv.conf</path> contains the nameservers for your |
| 25 | network. |
25 | network. |
| 26 | </p> |
26 | </p> |
| 27 | |
27 | |
| … | |
… | |
| 54 | <subsection> |
54 | <subsection> |
| 55 | <title>Entering the new Environment</title> |
55 | <title>Entering the new Environment</title> |
| 56 | <body> |
56 | <body> |
| 57 | |
57 | |
| 58 | <p> |
58 | <p> |
| 59 | Now that all partitions are initialized and the base environment |
59 | Now that all partitions are initialized and the base environment |
| 60 | installed, it is time to enter our new installation environment by |
60 | installed, it is time to enter our new installation environment by |
| 61 | <e>chrooting</e> into it. This means that we change from the current |
61 | <e>chrooting</e> into it. This means that we change from the current |
| 62 | installation environment (Installation CD or other installation medium) to your |
62 | installation environment (Installation CD or other installation medium) to your |
| 63 | installation system (namely the initialized partitions). |
63 | installation system (namely the initialized partitions). |
| 64 | </p> |
64 | </p> |
| 65 | |
65 | |
| 66 | <p> |
66 | <p> |
| 67 | This chrooting is done in three steps. First we will change the root |
67 | This chrooting is done in three steps. First we will change the root |
| 68 | from <path>/</path> (on the installation medium) to <path>/mnt/gentoo</path> |
68 | from <path>/</path> (on the installation medium) to <path>/mnt/gentoo</path> |
| 69 | (on your partitions) using <c>chroot</c>. Then we will create a new environment |
69 | (on your partitions) using <c>chroot</c>. Then we will reload some settings, as |
| 70 | using <c>env-update</c>, which essentially creates environment variables. |
70 | provided by <path>/etc/profile</path>, in memory using <c>source</c>. |
| 71 | Finally, we load those variables into memory using <c>source</c>. |
|
|
| 72 | </p> |
71 | </p> |
| 73 | |
72 | |
| 74 | <pre caption = "Chrooting into the new environment"> |
73 | <pre caption = "Chrooting into the new environment"> |
| 75 | # <i>chroot /mnt/gentoo /bin/bash</i> |
74 | # <i>chroot /mnt/gentoo /bin/bash</i> |
| 76 | # <i>env-update</i> |
|
|
| 77 | >> Regenerating /etc/ld.so.cache... |
|
|
| 78 | # <i>source /etc/profile</i> |
75 | # <i>source /etc/profile</i> |
| 79 | # <i>export PS1="(chroot) $PS1"</i> |
76 | # <i>export PS1="(chroot) $PS1"</i> |
| 80 | </pre> |
77 | </pre> |
| 81 | |
78 | |
| 82 | <p> |
79 | <p> |
| 83 | Congratulations! You are now inside your own Gentoo Linux environment. |
80 | Congratulations! You are now inside your own Gentoo Linux environment. |
| 84 | Of course it is far from finished, which is why the installation still |
81 | Of course it is far from finished, which is why the installation still |
| 85 | has some sections left :-) |
82 | has some sections left :-) |
| 86 | </p> |
83 | </p> |
| 87 | |
84 | |
| 88 | </body> |
85 | </body> |
| 89 | </subsection> |
86 | </subsection> |
| 90 | </section> |
87 | </section> |
| 91 | |
88 | |
| 92 | <section> |
89 | <section> |