Difference between revisions of "Package:Boot-Update"

From Funtoo
Jump to: navigation, search
(Current Versions)
 
Line 1: Line 1:
Funtoo boot-update provides a unified mechanism for configuring the GRUB 1.9x (sys-boot/[[grub]]) and GRUB 0.97 (sys-boot/grub-legacy) boot loaders. It is the recommended, official way to configure Funtoo Linux systems for booting.
+
Funtoo boot-update provides a unified mechanism for configuring the GRUB 1.9x ({{Package|sys-boot/grub}}) and GRUB 0.97 ({{Package|sys-boot/grub-legacy}}) boot loaders. It is the recommended, official way to configure Funtoo Linux systems for booting.
  
= Current Versions =
+
== Current Version ==
  
* sys-boot/boot-update-1.6.7
+
* {{Package|sys-boot/boot-update}}
 
+
= Man Pages =
+
  
 +
== Man Pages ==
 
Consult the following man pages for detailed, up-to-date information on configuration file settings and command-line arguments:
 
Consult the following man pages for detailed, up-to-date information on configuration file settings and command-line arguments:
  
Line 12: Line 11:
 
* boot.conf(5)
 
* boot.conf(5)
  
= GRUB 1.97+ Quick Start =
+
== GRUB 1.97+ Quick Start ==
  
If using sys-boot/grub-1.97+, perform the following steps:
+
If using ''<code>sys-boot/grub-1.97</code>'' or later, perform the following steps:
  
 
* Partition disk using GPT/GUID (recommended) or MBR partitions.
 
* Partition disk using GPT/GUID (recommended) or MBR partitions.
 
* Install kernel/initrd to /boot
 
* Install kernel/initrd to /boot
  
<pre>emerge sys-boot/boot-update
+
<console>
grub-install --no-floppy /dev/sda</pre>
+
###i## emerge sys-boot/boot-update
Ensure that <tt>/etc/fstab</tt> is correct, and edit <tt>/etc/boot.conf</tt> to reflect your installation. Then run:
+
###i## grub-install --no-floppy /dev/sda
 +
</console>
 +
Ensure that ''<code>/etc/fstab</code>'' is correct, and edit ''<tt>/etc/boot.conf</tt>'' to reflect your installation. Then run:
  
<pre>boot-update</pre>
+
<console>
This will auto-generate the complex <tt>/boot/grub/grub.cfg</tt> required for booting. Re-run <tt>boot-update</tt> every time your available kernels/initrds or <tt>/etc/boot.conf</tt> configuration changes.
+
###i## boot-update
 +
</console>
 +
This will auto-generate the complex ''<tt>/boot/grub/grub.cfg</tt>'' required for booting. Re-run ''<tt>boot-update</tt>'' every time your available kernels/initrds or ''<tt>/etc/boot.conf</tt>'' configuration changes.
  
 
= GRUB 0.97 (grub-legacy) Quick Start =
 
= GRUB 0.97 (grub-legacy) Quick Start =
  
If using sys-boot/grub-legacy-0.97, perform the following steps:
+
If using ''<code>sys-boot/grub-legacy-0.97</code>'', perform the following steps:
  
* Partition disk using MBR partitions (GPT not supported)
+
* Partition disk using MBR partitions '''(GPT not supported)'''
* Install kernel/initrd to /boot
+
* Install kernel/initrd to ''<code>/boot</code>''
  
<pre>emerge sys-boot/boot-update
+
<console>
emerge ">=sys-boot/grub-legacy-0.97-r11"
+
###i## emerge -av sys-boot/boot-update
grub-install-legacy /dev/sda</pre>
+
###i## emerge ">=sys-boot/grub-legacy-0.97-r11"
Due to an issue with grub-legacy, you may see the following message:
+
###i## grub-install-legacy /dev/sda
<pre># grub-install-legacy /dev/sda
+
</console>
 +
Due to an issue with ''<code>grub-legacy</code>'', you may see the following message:
 +
<console>
 +
###i## grub-install-legacy /dev/sda
 
The file /boot/grub-legacy/stage1 not read correctly.
 
The file /boot/grub-legacy/stage1 not read correctly.
</pre>
+
</console>
Should you receive this message you will have to install grub-legacy from the grub shell.
+
Should you receive this message, you will have to install ''<code>grub-legacy</code>'' from the grub shell.
Assuming /boot is /dev/sda1 and you want to install grub to the MBR, you would run the following:
+
Assuming ''<code>/boot</code>'' is ''<code>/dev/sda1</code>'' and you want to install grub to the MBR, you would run the following:
<pre>grub-legacy
+
<console>
 +
###i## grub-legacy
 
root (hd0,0)
 
root (hd0,0)
 
setup (hd0)
 
setup (hd0)
 
quit
 
quit
</pre>
+
</console>
 
When adjusting to fit your setup, remember 'root' is the location of your boot partition, 'setup' is where you want to install grub, and don't forget about grub's unique naming conventions for harddrives/partitions. For more information run:
 
When adjusting to fit your setup, remember 'root' is the location of your boot partition, 'setup' is where you want to install grub, and don't forget about grub's unique naming conventions for harddrives/partitions. For more information run:
<pre>info grub-legacy</pre>
+
<console>
 +
###i## info grub-legacy
 +
</console>
  
Ensure that <tt>/etc/fstab</tt> is correct, and edit <tt>/etc/boot.conf</tt> to reflect your installation. Ensure a <tt>generate grub-legacy</tt> setting in the <tt>boot</tt> section. Then run:
+
Ensure that ''<tt>/etc/fstab</tt>'' is correct, and edit ''<tt>/etc/boot.conf</tt>'' to reflect your installation. Ensure a ''<tt>generate grub-legacy</tt>'' setting in the ''<tt>boot</tt>'' section. Then run:
  
<pre>boot-update</pre>
+
<console>
This will auto-generate the <tt>/boot/grub-legacy/grub.conf</tt> required for booting. Note that grub-legacy-0.97-r11 and later stores <tt>grub.conf</tt> in the <tt>/boot/grub-legacy</tt> directory.
+
###i## boot-update
 +
</console>
 +
This will auto-generate the ''<tt>/boot/grub-legacy/grub.conf</tt>'' required for booting. Note that grub-legacy-0.97-r11 and later stores ''<tt>grub.conf</tt>'' in the ''<tt>/boot/grub-legacy</tt>'' directory.
  
Re-run <tt>boot-update</tt> every time your available kernels/initrds or <tt>/etc/boot.conf</tt> configuration changes.
+
Re-run ''<tt>boot-update</tt>'' every time your available kernels/initrds or ''<tt>/etc/boot.conf</tt>'' configuration changes.
  
 
[[Category:HOWTO]]
 
[[Category:HOWTO]]
 
[[Category:Projects]]
 
[[Category:Projects]]
 
[[Category:Funtoo features]]
 
[[Category:Funtoo features]]

Revision as of 16:16, 11 January 2014

Funtoo boot-update provides a unified mechanism for configuring the GRUB 1.9x (sys-boot/grub) and GRUB 0.97 (sys-boot/grub-legacy) boot loaders. It is the recommended, official way to configure Funtoo Linux systems for booting.

Current Version

Man Pages

Consult the following man pages for detailed, up-to-date information on configuration file settings and command-line arguments:

  • boot-update(8)
  • boot.conf(5)

GRUB 1.97+ Quick Start

If using sys-boot/grub-1.97 or later, perform the following steps:

  • Partition disk using GPT/GUID (recommended) or MBR partitions.
  • Install kernel/initrd to /boot
# emerge sys-boot/boot-update
# grub-install --no-floppy /dev/sda

Ensure that /etc/fstab is correct, and edit /etc/boot.conf to reflect your installation. Then run:

# boot-update

This will auto-generate the complex /boot/grub/grub.cfg required for booting. Re-run boot-update every time your available kernels/initrds or /etc/boot.conf configuration changes.

GRUB 0.97 (grub-legacy) Quick Start

If using sys-boot/grub-legacy-0.97, perform the following steps:

  • Partition disk using MBR partitions (GPT not supported)
  • Install kernel/initrd to /boot
# emerge -av sys-boot/boot-update
# emerge ">=sys-boot/grub-legacy-0.97-r11"
# grub-install-legacy /dev/sda

Due to an issue with grub-legacy, you may see the following message:

# grub-install-legacy /dev/sda
The file /boot/grub-legacy/stage1 not read correctly.

Should you receive this message, you will have to install grub-legacy from the grub shell. Assuming /boot is /dev/sda1 and you want to install grub to the MBR, you would run the following:

# grub-legacy
root (hd0,0)
setup (hd0)
quit

When adjusting to fit your setup, remember 'root' is the location of your boot partition, 'setup' is where you want to install grub, and don't forget about grub's unique naming conventions for harddrives/partitions. For more information run:

# info grub-legacy

Ensure that /etc/fstab is correct, and edit /etc/boot.conf to reflect your installation. Ensure a generate grub-legacy setting in the boot section. Then run:

# boot-update

This will auto-generate the /boot/grub-legacy/grub.conf required for booting. Note that grub-legacy-0.97-r11 and later stores grub.conf in the /boot/grub-legacy directory.

Re-run boot-update every time your available kernels/initrds or /etc/boot.conf configuration changes.