/[gentoo]/xml/htdocs/doc/en/uml.xml
Gentoo

Diff of /xml/htdocs/doc/en/uml.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.4 Revision 1.5
4<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 4<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
5 5
6<guide link="/doc/en/uml.xml"> 6<guide link="/doc/en/uml.xml">
7<title>Gentoo Linux Developer's guide to system testing with User-Mode Linux</title> 7<title>Gentoo Linux Developer's guide to system testing with User-Mode Linux</title>
8<author title="Editor"><mail link="g2boojum@gentoo.org">Grant Goodyear</mail></author> 8<author title="Editor"><mail link="g2boojum@gentoo.org">Grant Goodyear</mail></author>
9<author title="Editor"><mail link="zhen@gentoo.org">John Davis</mail></author>
9 10
10<abstract> 11<abstract>
11 This guide shows Gentoo Linux developers how to set up and use 12 This guide shows Gentoo Linux developers how to set up and use
12 user-mode linux for testing potentially system-breaking changes. 13 user-mode linux for testing potentially system-breaking changes.
13</abstract> 14</abstract>
14 15
15<version>0.06</version> 16<version>0.07</version>
16<date>11 February 2003</date> 17<date>21 March 2003</date>
17 18
18<chapter> 19<chapter>
19<title>Obtaining User-Mode Linux</title> 20<title>Obtaining User-Mode Linux</title>
20<section> 21<section>
21<body> 22<body>
113# <i>mkdir -p /mnt/gentoo/usr/portage/distfiles</i> 114# <i>mkdir -p /mnt/gentoo/usr/portage/distfiles</i>
114# <i>mkdir -p /mnt/gentoo/usr/portage/packages</i> 115# <i>mkdir -p /mnt/gentoo/usr/portage/packages</i>
115# <i>mount -o bind /usr/portage/distfiles /mnt/gentoo/usr/portage/distfiles</i> 116# <i>mount -o bind /usr/portage/distfiles /mnt/gentoo/usr/portage/distfiles</i>
116# <i>mount -o bind /usr/portage/packages /mnt/gentoo/usr/portage/packages</i> 117# <i>mount -o bind /usr/portage/packages /mnt/gentoo/usr/portage/packages</i>
117# <i>chroot /mnt/gentoo /bin/bash</i> 118# <i>chroot /mnt/gentoo /bin/bash</i>
119<!--per bug 16134, added emerge sync to supress warning, etc-->
120# <i>emerge sync</i>
118# <i>env-update</i> 121# <i>env-update</i>
119# <i>source /etc/profile</i> 122# <i>source /etc/profile</i>
120</pre> 123</pre>
121<p> 124<p>
122By bind-mounting <path>/usr/portage/distfiles</path> and 125By bind-mounting <path>/usr/portage/distfiles</path> and
125</p> 128</p>
126<p> 129<p>
127Bootstrap and build the system in the usual fashion: 130Bootstrap and build the system in the usual fashion:
128</p> 131</p>
129<pre> 132<pre>
130# <i>emerge rsync</i> 133<!--removed the emerge sync below because it is done above-->
131# <i>cd /usr/portage</i> 134# <i>cd /usr/portage</i>
132# <i>nano -w /etc/make.conf</i> 135# <i>nano -w /etc/make.conf</i>
133# <i>nano -w /etc/make.profile/packages</i> 136# <i>nano -w /etc/make.profile/packages</i>
134# <i>nano -w /usr/portage/profiles/package.mask</i> 137# <i>nano -w /usr/portage/profiles/package.mask</i>
135# <i>scripts/bootstrap.sh &amp;&amp; emerge --usepkg system</i> 138# <i>scripts/bootstrap.sh &amp;&amp; emerge --usepkg system</i>
136</pre> 139</pre>
137<warn> 140<warn>
141<!--Changed grub to virtual/bootloader-->
138The <path>/etc/make.profile/packages</path> file needs to be 142The <path>/etc/make.profile/packages</path> file needs to be
139edited to remove grub from the default system (just remove the "*" 143edited to remove the virtual/bootloader ebuild from the default system (just remove the "*"
140from the beginning of the "*sys-apps/grub" line). The grub ebuild 144from the beginning of the "*virtual/bootloader" line). The virtual/bootloader ebuild
141tries to mount the /boot partition, which will fail in our chroot. 145tries to mount the /boot partition, which will fail in our chroot.
142</warn> 146</warn>
143<note> 147<note>
144Make sure you examine <path>/etc/make.profile/packages</path> 148Make sure you examine <path>/etc/make.profile/packages</path>
145and <path>/usr/portage/profiles/package.mask</path> to be sure that 149and <path>/usr/portage/profiles/package.mask</path> to be sure that
164# <i>exit</i> 168# <i>exit</i>
165# <i>umount /mnt/gentoo/usr/portage/distfiles</i> 169# <i>umount /mnt/gentoo/usr/portage/distfiles</i>
166# <i>umount /mnt/gentoo/usr/portage/packages</i> 170# <i>umount /mnt/gentoo/usr/portage/packages</i>
167# <i>umount /mnt/gentoo/proc</i> 171# <i>umount /mnt/gentoo/proc</i>
168# <i>du -ks /mnt/gentoo</i> 172# <i>du -ks /mnt/gentoo</i>
169261744 /mnt/gentoo 173<!-- wtf is this? 261744 /mnt/gentoo-->
174<!-- added dir change to be more explicit-->
175# <i>cd /mnt/gentoo</i>
170# <i>tar cvjpf ~/gentoo.tbz2 *</i> 176# <i>tar cvjpf ~/gentoo.tbz2 *</i>
171# <i>cd</i> 177# <i>cd</i>
172# <i>rm -rf /mnt/gentoo</i> 178# <i>rm -rf /mnt/gentoo</i>
173</pre> 179</pre>
180
181<p> At this point, remember to set your root password. </p>
182
183<pre caption="Setting root password">
184# <c>passwd</c>
185</pre>
186
187<p>You might also want to consider reviewing the final steps of the
188<uri link="http://www.gentoo.org/doc/en/gentoo-x86-install.xml">Gentoo Linux x86 Installation Guide</uri>. </p>
174</body> 189</body>
175</section> 190</section>
176 191
177<section> 192<section>
178<title>Making <path>root_fs</path></title> 193<title>Making <path>root_fs</path></title>

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.20