1 |
On Wed, Feb 17, 2016 at 1:06 PM, Ian Stakenvicius <axs@g.o> wrote: |
2 |
> |
3 |
> Genkernel's initramfs generation was what we endorsed for the most |
4 |
> part, until dracut came around. it's hard to say what "most" are |
5 |
> doing but i expect dracut and genkernel based initramfs's make up |
6 |
> the vast majority in use by gentoo users, with a small minority |
7 |
> rolling their own through other means. |
8 |
> |
9 |
|
10 |
While I personally endorse dracut over genkernel, the reality is that |
11 |
only genkernel is actually documented in the handbook. This is due at |
12 |
least in part to laziness on my part as I've been meaning to add it |
13 |
since forever. |
14 |
|
15 |
Likewise I intend to update the handbook to make selection of |
16 |
openrc/systemd less convoluted as well. The current handbook does |
17 |
offer systemd as an option but then basically refers you out to |
18 |
another page that doesn't follow the same flow as the handbook. |
19 |
|
20 |
In my notes I've found that it is a pretty trivial change to pick one |
21 |
or the other actually if you do it at the right time, so this could be |
22 |
added to the handbook with very little disruption to the flow for |
23 |
non-systemd users. I imagine other service managers would be similar, |
24 |
or even simpler. I found that switching between the two only requires |
25 |
two changes - one is to pick a systemd profile relatively early in the |
26 |
process before doing a world update, and then changing one line in |
27 |
your grub config at the end. If you emerge world after you do most of |
28 |
your system configuration systemd will automatically pick up all the |
29 |
openrc configuration and use it, which as a bonus leaves you with a |
30 |
system that is easy to boot in either mode. |
31 |
|
32 |
Getting back to dracut - it is really just a few lines added as an |
33 |
alternative to the initramfs section. After you build your kernel it |
34 |
is really just a one-liner, and grub2-mkconfig picks up on it |
35 |
automatically (as I imagine it probably does with genkernel as well). |
36 |
Unless you want to play with the configuration there isn't much fuss. |
37 |
|
38 |
I think we really should give strong consideration to recommending |
39 |
dracut as a default, while of course preserving the option of |
40 |
genkernel. I'm certainly open to feedback if there is some use case |
41 |
where genkernel is better, but dracut is cross-distro, gives you |
42 |
options to easily maximize or minimize your config, and is really easy |
43 |
to tailor with modules. |
44 |
|
45 |
-- |
46 |
Rich |