Difference between pages "Package:Boot-Update" and "Template:Ebuild"

(Difference between pages)
 
 
Line 1: Line 1:
 +
<noinclude>
 +
This is the "Ebuild" template.
 +
It should be called in the following format:
 +
<pre>
 
{{Ebuild
 
{{Ebuild
|Summary=Funtoo Core Boot Framework for global boot loader configuration
+
|Summary=
|CatPkg=sys-boot/boot-update
+
|CatPkg=
|Maintainer=Drobbins
+
|Maintainer=
|Repository=Funtoo Overlay
+
|Organization=Funtoo Technologies
+
|Overlay=Funtoo
+
 
}}
 
}}
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.
+
</pre>
 +
Edit the page to see the template text.
 +
</noinclude><includeonly><div style="float: right; width: 30%; padding: 1em; margin-left: 1em; margin-bottom: 1em; border-radius: 10px; border: 1px solid #ddd; background-color: #efefef;" id="eb_infobox">
 +
<b><tt>[[CatPkg::{{{CatPkg|}}}]]</tt></b>
 +
<hr>{{#vardefine:cat|{{#explode:{{{CatPkg}}}|/|0}}}}{{#vardefine:pkg|{{#explode:{{{CatPkg}}}|/|1}}}}{{#get_web_data:url=http://ports.funtoo.org/packages.xml|format=xml|use xpath|data=repo_id=/packages/category[@name='{{#var:cat}}']/package[@name='{{#var:pkg}}']/@repository}}{{#vardefine:repoid|{{#if:{{#external_value:repo_id}}|{{#external_value:repo_id}}|gentoo}}}}{{#set:RepoID={{#var:repoid}}}}
 +
<table border="0" width="100%">
 +
{{#if: {{{Maintainer|}}} |<tr><td><i>Current Maintainer(s):</i></td><td>{{#arraymaptemplate:{{{Maintainer|}}}|MaintainerDisplay|,|,}}</td></tr> |}}<tr><td><i>Source Repository:</i></td><td>{{#ask:[[Category:Repositories]] [[Repository ID::{{#var:repoid}}]]}}</td></tr></table><hr>
 +
<b>Summary:</b> [[Summary::{{{Summary|}}}]]
 +
</div><div id="ebuild_header"><div id="ebuild_logo" style="padding-bottom: 1em;">[[File:ebuild.png|link=|frameless]]</div><div id="ebuild_title">
 +
= {{PAGENAME}} =</div>
  
== Current Version ==
 
  
* {{Package|sys-boot/boot-update}}
 
  
== Man Pages ==
+
</includeonly>
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 <code>sys-boot/grub-1.97</code> or later, perform the following steps:
+
 
+
* Partition disk using GPT/GUID (recommended) or MBR partitions.
+
* Install kernel/initrd to <code>/boot</code>
+
 
+
<console>
+
###i## emerge sys-boot/boot-update
+
###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:
+
 
+
<console>
+
###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 =
+
 
+
If using <code>sys-boot/grub-legacy-0.97</code>, perform the following steps:
+
 
+
* Partition disk using MBR partitions '''(GPT not supported)'''
+
* Install kernel/initrd to <code>/boot</code>
+
 
+
<console>
+
###i## emerge sys-boot/boot-update
+
###i## emerge ">=sys-boot/grub-legacy-0.97-r11"
+
###i## 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.
+
</console>
+
Should you receive this message, you will have to install <code>grub-legacy</code> from the grub shell.
+
Assuming <code>/boot</code> is the partition <code>/dev/sda1</code> and you want to install grub to the MBR, you would run the following:
+
<console>
+
###i## grub-legacy
+
root (hd0,0)
+
setup (hd0)
+
quit
+
</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 hard drives / partitions. For more information run:
+
<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:
+
 
+
<console>
+
###i## boot-update
+
</console>
+
This will auto-generate the <tt>/boot/grub-legacy/grub.conf</tt> required for booting. Note that <code>grub-legacy-0.97-r11</code> 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.
+
 
+
[[Category:Projects]]
+
[[Category:Funtoo features]]
+
{{EbuildFooter}}
+

Revision as of 01:29, 25 June 2014

This is the "Ebuild" template. It should be called in the following format:

{{Ebuild
|Summary=
|CatPkg=
|Maintainer=
}}

Edit the page to see the template text.