/[gentoo]/xml/htdocs/doc/en/handbook/hb-install-sparc-bootloader.xml
Gentoo

Contents of /xml/htdocs/doc/en/handbook/hb-install-sparc-bootloader.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.25 - (hide annotations) (download) (as text)
Tue Sep 11 22:49:20 2012 UTC (19 months ago) by nightmorph
Branch: MAIN
CVS Tags: HEAD
Changes since 1.24: +7 -5 lines
File MIME type: application/xml
update handbooks for initramfs changes needed for separate /usr and other partitions. bug #415175, bug #434550, bug #434554, bug #434732

1 swift 1.1 <?xml version='1.0' encoding='UTF-8'?>
2     <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
3    
4     <!-- The content of this document is licensed under the CC-BY-SA license -->
5 neysx 1.14 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
6 swift 1.1
7 nightmorph 1.25 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-sparc-bootloader.xml,v 1.24 2011/05/09 19:47:22 nightmorph Exp $ -->
8 swift 1.1
9     <sections>
10 swift 1.8
11 nightmorph 1.25 <version>6</version>
12     <date>2012-09-11</date>
13 swift 1.8
14 swift 1.1 <section>
15     <title>Making your Choice</title>
16     <subsection>
17     <title>Introduction</title>
18     <body>
19    
20     <p>
21     Now that your kernel is configured and compiled and the necessary system
22     configuration files are filled in correctly, it is time to install a
23     program that will fire up your kernel when you start the system. Such a
24     program is called a <e>bootloader</e>.
25     </p>
26    
27     </body>
28     </subsection>
29     </section>
30     <section>
31     <title>Installing the SPARC Bootloader: SILO</title>
32     <body>
33    
34     <p>
35     It is now time to install and configure <uri
36     link="http://www.sparc-boot.org">SILO</uri>, the Sparc Improved boot
37     LOader.
38     </p>
39    
40 nightmorph 1.22 <pre caption="Installing SILO">
41 swift 1.13 # <i>emerge silo</i>
42 swift 1.1 </pre>
43    
44     <p>
45     Now open up your favorite editor (we use <c>nano</c> as an example) and
46     create <path>/etc/silo.conf</path>.
47     </p>
48    
49 nightmorph 1.22 <pre caption="Creating /etc/silo.conf">
50 swift 1.1 # <i>nano -w /etc/silo.conf</i>
51     </pre>
52    
53     <p>
54 neysx 1.6 Below you'll find an example <path>silo.conf</path> file. It uses the
55 nightmorph 1.25 partitioning scheme we use throughout this book, <path>kernel-<keyval
56     id="kernel-version"/></path> as kernelimage and <path><keyval
57     id="genkernel-initrd"/></path> as initramfs.
58 swift 1.1 </p>
59    
60 nightmorph 1.22 <pre caption="Example /etc/silo.conf">
61 swift 1.12 partition = 1 <comment># Boot partition (= root partition)</comment>
62     root = /dev/sda1 <comment># Root partition</comment>
63 neysx 1.14 timeout = 150 <comment># Wait 15 seconds before booting the default section</comment>
64 swift 1.1
65 nightmorph 1.23 image = /boot/<keyval id="kernel-name"/>
66 swift 1.1 label = linux
67 nightmorph 1.25 append = "initrd=/boot/<keyval id="genkernel-initrd"/> real_root=/dev/sda1"
68 swift 1.1 </pre>
69    
70     <p>
71     If you use the example <path>silo.conf</path> delivered by Portage, be
72     sure to comment out <e>all</e> lines that you do not need.
73     </p>
74    
75     <p>
76 swift 1.3 If the physical disk on which you want to install SILO (as bootloader) differs
77     from the physical disk on which <path>/etc/silo.conf</path> resides, you must
78     copy over <path>/etc/silo.conf</path> to a partition on that disk. Assuming that
79     <path>/boot</path> is a separate partition on that disk, copy over the
80 swift 1.1 configuration file to <path>/boot</path> and run <c>/sbin/silo</c>:
81     </p>
82    
83 nightmorph 1.22 <pre caption="Only if /boot and the SILO destination are not on the same disk">
84 swift 1.1 # <i>cp /etc/silo.conf /boot</i>
85     # <i>/sbin/silo -C /boot/silo.conf</i>
86     /boot/silo.conf appears to be valid
87     </pre>
88    
89     <p>
90 swift 1.3 Otherwise just run <c>/sbin/silo</c>:
91 swift 1.1 </p>
92    
93 nightmorph 1.22 <pre caption="Run silo">
94 swift 1.1 # <i>/sbin/silo</i>
95     /etc/silo.conf appears to be valid
96     </pre>
97    
98 nightmorph 1.20 <note>
99     You have to run <c>silo</c> (with parameters) again each time you update or
100     reinstall the <c>sys-boot/silo</c> package.
101     </note>
102    
103 swift 1.1 <p>
104 swift 1.4 Now continue with <uri link="#reboot">Rebooting the System</uri>.
105 swift 1.1 </p>
106    
107     </body>
108     </section>
109 cam 1.5 <section id="reboot">
110 swift 1.4 <title>Rebooting the System</title>
111     <subsection>
112     <body>
113    
114     <p>
115     Exit the chrooted environment and unmount all mounted partitions. Then type in
116     that one magical command you have been waiting for: <c>reboot</c>.
117     </p>
118    
119     <pre caption="Exiting the chroot, unmounting all partitions and rebooting">
120     # <i>exit</i>
121 swift 1.7 cdimage ~# <i>cd</i>
122 nightmorph 1.24 cdimage ~# <i>umount -l /mnt/gentoo/dev{/shm,/pts,}</i>
123     cdimage ~# <i>umount -l /mnt/gentoo{/usr,/home,/var,/proc,}</i>
124 swift 1.4 cdimage ~# <i>reboot</i>
125     </pre>
126    
127     <p>
128     Of course, don't forget to remove the bootable CD, otherwise the CD will be
129     booted again instead of your new Gentoo system.
130     </p>
131    
132     <p>
133     Once rebooted in your Gentoo installation, finish up with <uri
134     link="?part=1&amp;chap=11">Finalizing your Gentoo Installation</uri>.
135     </p>
136    
137     </body>
138     </subsection>
139     </section>
140 swift 1.1 </sections>

  ViewVC Help
Powered by ViewVC 1.1.20