| 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/1.0 --> |
5 | <!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
| 6 | |
6 | |
| 7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-sparc-bootloader.xml,v 1.11 2005/01/04 18:11:21 swift Exp $ --> |
7 | <!-- $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 | |
8 | |
| 9 | <sections> |
9 | <sections> |
| 10 | |
10 | |
| 11 | <version>1.7</version> |
11 | <version>5</version> |
| 12 | <date>2004-09-24</date> |
12 | <date>2011-05-09</date> |
| 13 | |
13 | |
| 14 | <section> |
14 | <section> |
| 15 | <title>Making your Choice</title> |
15 | <title>Making your Choice</title> |
| 16 | <subsection> |
16 | <subsection> |
| 17 | <title>Introduction</title> |
17 | <title>Introduction</title> |
| … | |
… | |
| 35 | It is now time to install and configure <uri |
35 | It is now time to install and configure <uri |
| 36 | link="http://www.sparc-boot.org">SILO</uri>, the Sparc Improved boot |
36 | link="http://www.sparc-boot.org">SILO</uri>, the Sparc Improved boot |
| 37 | LOader. |
37 | LOader. |
| 38 | </p> |
38 | </p> |
| 39 | |
39 | |
| 40 | <pre caption = "Installing SILO"> |
40 | <pre caption="Installing SILO"> |
| 41 | # <i>emerge --usepkg silo</i> |
41 | # <i>emerge silo</i> |
| 42 | </pre> |
42 | </pre> |
| 43 | |
43 | |
| 44 | <p> |
44 | <p> |
| 45 | Now open up your favorite editor (we use <c>nano</c> as an example) and |
45 | Now open up your favorite editor (we use <c>nano</c> as an example) and |
| 46 | create <path>/etc/silo.conf</path>. |
46 | create <path>/etc/silo.conf</path>. |
| 47 | </p> |
47 | </p> |
| 48 | |
48 | |
| 49 | <pre caption = "Creating /etc/silo.conf"> |
49 | <pre caption="Creating /etc/silo.conf"> |
| 50 | # <i>nano -w /etc/silo.conf</i> |
50 | # <i>nano -w /etc/silo.conf</i> |
| 51 | </pre> |
51 | </pre> |
| 52 | |
52 | |
| 53 | <p> |
53 | <p> |
| 54 | Below you'll find an example <path>silo.conf</path> file. It uses the |
54 | Below you'll find an example <path>silo.conf</path> file. It uses the |
| 55 | partitioning scheme we use throughout this book and |
55 | partitioning scheme we use throughout this book and |
| 56 | <path>kernel-2.4.24</path> as kernelimage. |
56 | <path>kernel-<keyval id="kernel-version"/></path> as kernelimage. |
| 57 | </p> |
57 | </p> |
| 58 | |
58 | |
| 59 | <pre caption = "Example /etc/silo.conf"> |
59 | <pre caption="Example /etc/silo.conf"> |
| 60 | partition = 1 <comment># Boot partition</comment> |
60 | partition = 1 <comment># Boot partition (= root partition)</comment> |
| 61 | root = /dev/hda4 <comment># Root partition</comment> |
61 | root = /dev/sda1 <comment># Root partition</comment> |
| 62 | timeout = 150 <comment># Wait 15 seconds before booting the default section</comment> |
62 | timeout = 150 <comment># Wait 15 seconds before booting the default section</comment> |
| 63 | |
63 | |
| 64 | image = /boot/kernel-2.4.24 |
64 | image = /boot/<keyval id="kernel-name"/> |
| 65 | label = linux |
65 | label = linux |
| 66 | </pre> |
66 | </pre> |
| 67 | |
67 | |
| 68 | <p> |
68 | <p> |
| 69 | If you use the example <path>silo.conf</path> delivered by Portage, be |
69 | If you use the example <path>silo.conf</path> delivered by Portage, be |
| … | |
… | |
| 76 | copy over <path>/etc/silo.conf</path> to a partition on that disk. Assuming that |
76 | copy over <path>/etc/silo.conf</path> to a partition on that disk. Assuming that |
| 77 | <path>/boot</path> is a separate partition on that disk, copy over the |
77 | <path>/boot</path> is a separate partition on that disk, copy over the |
| 78 | configuration file to <path>/boot</path> and run <c>/sbin/silo</c>: |
78 | configuration file to <path>/boot</path> and run <c>/sbin/silo</c>: |
| 79 | </p> |
79 | </p> |
| 80 | |
80 | |
| 81 | <pre caption = "Only if /boot and the SILO destination are on the same disk"> |
81 | <pre caption="Only if /boot and the SILO destination are not on the same disk"> |
| 82 | # <i>cp /etc/silo.conf /boot</i> |
82 | # <i>cp /etc/silo.conf /boot</i> |
| 83 | # <i>/sbin/silo -C /boot/silo.conf</i> |
83 | # <i>/sbin/silo -C /boot/silo.conf</i> |
| 84 | /boot/silo.conf appears to be valid |
84 | /boot/silo.conf appears to be valid |
| 85 | </pre> |
85 | </pre> |
| 86 | |
86 | |
| 87 | <p> |
87 | <p> |
| 88 | Otherwise just run <c>/sbin/silo</c>: |
88 | Otherwise just run <c>/sbin/silo</c>: |
| 89 | </p> |
89 | </p> |
| 90 | |
90 | |
| 91 | <pre caption = "Run silo"> |
91 | <pre caption="Run silo"> |
| 92 | # <i>/sbin/silo</i> |
92 | # <i>/sbin/silo</i> |
| 93 | /etc/silo.conf appears to be valid |
93 | /etc/silo.conf appears to be valid |
| 94 | </pre> |
94 | </pre> |
|
|
95 | |
|
|
96 | <note> |
|
|
97 | You have to run <c>silo</c> (with parameters) again each time you update or |
|
|
98 | reinstall the <c>sys-boot/silo</c> package. |
|
|
99 | </note> |
| 95 | |
100 | |
| 96 | <p> |
101 | <p> |
| 97 | Now continue with <uri link="#reboot">Rebooting the System</uri>. |
102 | Now continue with <uri link="#reboot">Rebooting the System</uri>. |
| 98 | </p> |
103 | </p> |
| 99 | |
104 | |
| … | |
… | |
| 110 | </p> |
115 | </p> |
| 111 | |
116 | |
| 112 | <pre caption="Exiting the chroot, unmounting all partitions and rebooting"> |
117 | <pre caption="Exiting the chroot, unmounting all partitions and rebooting"> |
| 113 | # <i>exit</i> |
118 | # <i>exit</i> |
| 114 | cdimage ~# <i>cd</i> |
119 | cdimage ~# <i>cd</i> |
| 115 | cdimage ~# <i>umount /mnt/gentoo/boot /mnt/gentoo/proc /mnt/gentoo</i> |
120 | cdimage ~# <i>umount -l /mnt/gentoo/dev{/shm,/pts,}</i> |
|
|
121 | cdimage ~# <i>umount -l /mnt/gentoo{/usr,/home,/var,/proc,}</i> |
| 116 | cdimage ~# <i>reboot</i> |
122 | cdimage ~# <i>reboot</i> |
| 117 | </pre> |
123 | </pre> |
| 118 | |
124 | |
| 119 | <p> |
125 | <p> |
| 120 | Of course, don't forget to remove the bootable CD, otherwise the CD will be |
126 | Of course, don't forget to remove the bootable CD, otherwise the CD will be |