Gentoo Archives: gentoo-user

From: Michael Hampicke <gentoo-user@××××.biz>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] InitRAMFS - boot expert sought
Date: Tue, 27 Mar 2012 16:20:50
Message-Id: 4F71E865.30800@hadt.biz
In Reply to: Re: [gentoo-user] InitRAMFS - boot expert sought by Michael Mol
1 > Dracut is masked on ~amd64. Bugs me, as I'd rather use something like
2 > that than genkernel (I very much like building my own kernels; it
3 > helps me keep things lean, and keeps me familiar with the capabilities
4 > of current and future systems). But now I have to find time to learn
5 > how to use Genkernel.
6
7 I don't understand why people always say that they hate genkernel
8 because they like to build the kernel on their own. You still can do
9 this with genkernel. I've been doing it for years.
10
11 This is my workflow after I merged a new kernel
12
13 # copy old config to new kernel sources
14 % zcat /proc/config.gz > /usr/src/linux/.config
15
16 # enter source dir
17 % cd /usr/src/linux
18
19 # run make oldconfig (help you keep things lean, keeps you familiar with
20 the capabilities of current and future systems.....)
21 % make oldconfig
22
23 # compile kernel and modules, generate initrd, install to /boot and
24 /lib/modules, create symlinks in /boot
25 % genkernel all
26
27 # recompile 3rd party modules
28 % module-rebuild rebuild
29
30 You just have to tell genkernel not to "make mrproper" in
31 /etc/genkernel.conf - so that it actually uses your kernel config, and
32 in essence, let's you "build your own kernel". I also tell genkernel not
33 to run "make clean" - for a faster recompile if I have changed my kernel
34 config.
35
36 I love genkernel, it just makes life so much easier, you don't have
37 enter every command manually. And still keeps it the gentoo-way: you can
38 configure everything so that it does exactly what you wan't.
39
40 Just take a look at /etc/genkernel.conf
41 genkernel can do even more stuff for you.
42 For example include a copy of /etc/mdadm.conf into your initramfs so
43 that the initramfs can mount your software raid (even with metadata
44 higher than 0.90 :) - this is where the kernel raid auto assembly fails).
45 Or enable a splash theme for a graphical boot - if you like that sort of
46 thing.
47
48 I'm sure you're gonna love it to after you have used it for some time.

Replies

Subject Author
Re: [gentoo-user] InitRAMFS - boot expert sought Michael Mol <mikemol@×××××.com>
Re: [gentoo-user] InitRAMFS - boot expert sought Dale <rdalek1967@×××××.com>
Re: [gentoo-user] InitRAMFS - boot expert sought William Kenworthy <billk@×××××××××.au>