1 |
On Mon, Aug 15, 2016 at 10:54 AM, Ian Zimmerman <itz@××××.org> wrote: |
2 |
> |
3 |
> So, can anyone explain why dracut is better than genkernel for _that_ |
4 |
> particular subtask? |
5 |
> |
6 |
|
7 |
Focusing purely on dracut vs genkernel: |
8 |
|
9 |
The main advantage of dracut is that it is a cross-distro tool that |
10 |
gets a lot more attention in general (being used by multiple distros I |
11 |
believe). I know it does things like copy your mdadm.conf and fstab |
12 |
to the initramfs and tries to use existing configurations like these. |
13 |
It probably supports a larger number of targets as well (like various |
14 |
network-based roots). |
15 |
|
16 |
It is also more modular. While it was rightly said that the |
17 |
documentation is more reference-level than howto-level it is |
18 |
straightforward to drop in your own modules if you need them. If you |
19 |
include all the modules in most cases it can figure out what to do on |
20 |
its own. |
21 |
|
22 |
However, ultimately both tools just boot the system and then go away, |
23 |
so if your system is booting, it isn't like it will boot "better" with |
24 |
one tool than the other. There are a few nice-to-haves with dracut |
25 |
(and perhaps also with genkernel), but I don't think they're going to |
26 |
sway somebody. Something I like about dracut is that when I'm |
27 |
shutting down systemd actually pivots back to the initramfs and it |
28 |
unmounts root, which I think is more elegant than mounting ro, but in |
29 |
practice the latter works. |
30 |
|
31 |
For me the main driver is using something fairly standard vs something |
32 |
Gentoo-specific. |
33 |
|
34 |
-- |
35 |
Rich |