Difference between pages "Extlinux" and "Help:Editing"

From Funtoo
(Difference between pages)
Jump to: navigation, search
(lazykernel way)
 
 
Line 1: Line 1:
= What is ExtLinux? =
+
{{PD Help Page}}
 +
;Editing
 +
:[[Help:Editing pages|Editing pages]]
 +
:[[Help:Starting a new page|Starting a new page]]
 +
:[[Help:Formatting|Formatting]]
 +
:[[Help:Links|Links]]
 +
:[[Help:User page|User pages]]
 +
:[[Help:Talk pages|Talk pages]]
 +
;Advanced Editing
 +
:[[Help:Images|Images]]
 +
:[[Help:Tables|Tables]]
 +
:[[Help:Categories|Categories]]
 +
:[[Help:Templates|Templates]]
 +
:[[Help:Variables|Variables]]
 +
:[[Help:Managing files|Managing files]]
 +
:[[Help:Moving a page|Moving a page]]
 +
:[[Help:Redirects|Redirects]]
 +
:[[Help:Deleting a page|Deleting a page]]
  
ExtLinux is a pretty simple and modern systemloader, bundled with the syslinux tools, installation is really simple for it and fast, and thanks to our CoreTeam member Slashbeast the configuration runs automated in an awesome way.
+
{{languages|Help:Editing}}
 
+
[[Category:Help|Editing]]
= Installing ExtLinux for funtoo =
+
 
+
Installing ExtLinux for funtoo is known to work and supported too. If you like to try it just emerge syslinux
+
 
+
<console>
+
# ##i##emerge syslinux
+
</console>
+
 
+
with that you have the complete syslinux tools installed. Another helpful tool you should merge with syslinux is slashbeast's lazykernel tool, so let us merge it too:
+
 
+
<console>
+
# ##i##emerge lazykernel
+
</console>
+
 
+
== Installing extlinux ==
+
 
+
to install extlinux just follow these steps:
+
 
+
<console>
+
# ##i##install -d /boot/extlinux
+
# ##i##extlinux --install /boot/extlinux
+
</console>
+
 
+
the next steps are different depending if you use an MBR or GPT setup and the HDD you installed on and want to boot from. Let us now for general take /dev/sda as your boot device.
+
 
+
=== MBR ===
+
 
+
If you set up your disk with MBR partition scheme just do the next steps:
+
 
+
<console>
+
# ##i##dd bs=440 conv=notrunc count=1 if=/usr/share/syslinux/mbr.bin of=/dev/sda
+
# ##i##cp /usr/share/syslinux/menu.c32 /boot/extlinux/
+
# ##i##cp /usr/share/syslinux/libutil.c32 /boot/extlinux/
+
# ##i##touch /boot/extlinux/extlinux.conf
+
</console>
+
 
+
=== GPT ===
+
 
+
<console>
+
# ##i##sgdisk /dev/sda --attributes=1:set:2
+
# ##i##sgdisk /dev/sda --attributes=1:show
+
1:2:1 (legacy BIOS bootable)
+
# ##i##dd bs=440 conv=notrunc count=1 if=/usr/share/syslinux/gptmbr.bin of=/dev/sda
+
# ##i##cp /usr/share/syslinux/menu.c32 /boot/extlinux/
+
# ##i##cp /usr/share/syslinux/libutil.c32 /boot/extlinux/
+
# ##i##touch /boot/extlinux/extlinux.conf
+
</console>
+
 
+
== Setting up the Kernel ==
+
 
+
Now if you followed our advice to install lazykernel we have a pretty nice way to solve all the setup with a bit of prework and finish it then. If not you should go to the manual part. :)
+
 
+
=== lazykernel way ===
+
 
+
As you setup lazykernel, we now need to edit <tt>/etc/lazykernel.conf</tt>
+
 
+
make it to look like somethink like that:
+
 
+
<pre>
+
# After configuring, hash or remove line below.
+
#CONFIGUREFIRST
+
 
+
# Number of the kernels to keep so `lazykernel clean` will not propose to remove them. Default: 3
+
keep_kernels=5
+
 
+
# Sort kernels by 'version' (biggest version first) or by 'mtime' (latest images first). Default: mtime
+
# Sorting by version may fail and 3.3.0-rc2 will be marked as newer than 3.3.0.
+
#sort_by='version'
+
sort_by=mtime
+
 
+
# The name for menu entry.
+
menu_entry_name="Funtoo Linux"
+
 
+
# Specify what initramfs image to use, if any. (Optional)
+
initramfs='initramfs.cpio.gz'
+
 
+
# Append kernel params, usualy you use it to specify rootfs device, but you can use it to pass switches to initramfs as well.
+
kernel_params="rootfstype=ext4 luks enc_root=/dev/sdb3 lvm root=/dev/mapper/vg-root uswsusp resume=/dev/mapper/vg-swap"
+
</pre>
+
 
+
please make sure to comment out or delete the second line of the config file, else it will spit out an error for you... :)
+
 
+
Now let us setup our kernel with lazykernel if you have a manual kernel just run:
+
 
+
<console>
+
# ##i##cd <kernel build dir>
+
# ##i##lazykernel auto
+
</console>
+
 
+
that will generate the modules for you, copy your kernel form /usr/src/linux over to /boot and generate the /boot/extlinux/extlinux.conf for you. The manual kernel will be the only supported one by lazykernel.
+
 
+
That's all you are ready to boot. :)
+
 
+
=== manual extlinux.conf ===
+
 
+
For other kernels, like those created by genkernel or by the binary USE-flag you need to edit your config by yourself. Just open /boot/extlinux/extlinux.conf in your favorite editor and setup something like the following:
+
 
+
<pre>
+
TIMEOUT 30
+
UI menu.c32
+
 
+
MENU TITLE Boot Menu
+
MENU COLOR title        1;37;40
+
MENU COLOR border      30;40
+
MENU COLOR unsel        37;40
+
 
+
LABEL funtoo1
+
        MENU LABEL Funtoo Linux KERNEL-VERSION
+
        LINUX /<kernel>
+
        INITRD /<initramfs>
+
        APPEND rootfstype=ext4 luks enc_root=/dev/sdb3 lvm root=/dev/mapper/vg-root uswsusp resume=/dev/mapper/vg-swap
+
</pre>
+
 
+
That's all again you are ready for boot. You can also define several LABELs in that list to have multiple kernels been booted... :)
+
 
+
[[Category:HOWTO]]
+

Latest revision as of 17:39, 11 January 2014

PD Important note: When you edit this page, you agree to release your contribution into the public domain. If you don't want this or can't do this because of license restrictions, please don't edit. This page is one of the Public Domain Help Pages, which can be freely copied into fresh wiki installations and/or distributed with MediaWiki software; see Help:Contents for an overview of all pages. See Project:PD help/Copying for instructions. PD
Editing
Editing pages
Starting a new page
Formatting
Links
User pages
Talk pages
Advanced Editing
Images
Tables
Categories
Templates
Variables
Managing files
Moving a page
Redirects
Deleting a page
Language: English