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

Diff of /xml/htdocs/doc/en/handbook/hb-install-alpha-bootloader.xml

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

Revision 1.24 Revision 1.25
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/hb-install-alpha-bootloader.xml,v 1.24 2011/05/09 19:47:22 nightmorph Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-alpha-bootloader.xml,v 1.25 2012/09/11 22:49:20 nightmorph Exp $ -->
8 8
9<sections> 9<sections>
10 10
11<version>11</version> 11<version>12</version>
12<date>2011-05-09</date> 12<date>2012-09-11</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>
70filesystem, make sure it gets mounted read-only at first by adding <c>ro</c> as 70filesystem, make sure it gets mounted read-only at first by adding <c>ro</c> as
71a kernel option. 71a kernel option.
72</note> 72</note>
73 73
74<p> 74<p>
75Although <c>aboot</c> is now installed, we still need to write a configuration
76file for it. Aboot only requires one line for each configuration, so we
77can do this:
78</p>
79
80<pre caption="Creating /etc/aboot.conf">
81# <i>echo '0:2/boot/vmlinux.gz root=/dev/sda2' &gt; /etc/aboot.conf</i>
82
83<comment>
84If, while building the Linux kernel, you opted to include an initramfs to boot
85from, then you will need to change the configuration by referring to this
86initramfs file and telling the initramfs where your real root device is at:
87</comment>
88
89# <i>echo '0:2/boot/vmlinux.gz initrd=/boot/<keyval id="genkernel-initrd"/> real_root=/dev/sda2' &gt; /etc/aboot.conf</i>
90</pre>
91
92
93<p>
75Additionally, you can make Gentoo boot automatically by setting up the 94Additionally, you can make Gentoo boot automatically by setting up some SRM
76aboot configuration file and some SRM variables. You can try setting 95variables. You can try setting these variables from Linux, but it may be easier
77these variables from Linux, but it may be easier to do so from the SRM 96to do so from the SRM console itself.
78console itself.
79</p> 97</p>
80 98
81<pre caption="Automatically booting Gentoo"> 99<pre caption="Automatically booting Gentoo">
82# <i>echo '0:2/boot/vmlinux.gz root=/dev/sda2' &gt; /etc/aboot.conf</i>
83# <i>cd /proc/srm_environment/named_variables</i> 100# <i>cd /proc/srm_environment/named_variables</i>
84# <i>echo -n 0 &gt; boot_osflags</i> 101# <i>echo -n 0 &gt; boot_osflags</i>
85# <i>echo -n '' &gt; boot_file</i> 102# <i>echo -n '' &gt; boot_file</i>
86# <i>echo -n 'BOOT' &gt; auto_action</i> 103# <i>echo -n 'BOOT' &gt; auto_action</i>
87# <i>echo -n 'dkc100' &gt; bootdef_dev</i> 104# <i>echo -n 'dkc100' &gt; bootdef_dev</i>

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

  ViewVC Help
Powered by ViewVC 1.1.20