1 |
On Fri, May 16, 2014 at 7:10 AM, Stefan G. Weichinger <lists@×××××.at> wrote: |
2 |
> Am 16.05.2014 13:56, schrieb Bruce Schultz: |
3 |
> |
4 |
>>> I ask because in all my reorganizing furor I also thought that now |
5 |
>>> with btrfs only I could get rid of "lvm mdraid" as dracut-modules. |
6 |
>>> I can try ... ;-) (don't call me "ricer") |
7 |
>> |
8 |
>> If you have a multi-disk btrfs, I think you need to add the btrfs |
9 |
>> dracut module. At least that's how I remember it, but its been a |
10 |
>> while & my memory could be failing me, or it could well have changed |
11 |
>> since then. |
12 |
> |
13 |
> I currently have in /etc/dracut.conf: |
14 |
> |
15 |
> add_dracutmodules+="bash systemd" |
16 |
> hostonly="yes" |
17 |
> hostonly_cmdline="yes" |
18 |
> |
19 |
> and am able to boot via grub2 and efi, that means, |
20 |
> |
21 |
> /boot/efi (vfat) on /dev/sda1 (sda is the SSD) |
22 |
> |
23 |
> and |
24 |
> |
25 |
> / as btrfs-subvol on /dev/sda2 (with /boot as directory on it). |
26 |
> |
27 |
> So no multi-disk btrfs for / or /boot on this machine. |
28 |
> |
29 |
> - |
30 |
> |
31 |
> removing "lvm mdraid" from dracut slimmed down the initrd from around |
32 |
> 6.8 MB to 5.5 MB ... nice, but not necessary as Canek mentioned. |
33 |
> |
34 |
> I just "play" with it to learn and understand even better. |
35 |
> |
36 |
> I am not sure what the module "systemd" does or is good for, and |
37 |
> |
38 |
> https://www.kernel.org/pub/linux/utils/boot/dracut/dracut.html#dracut.kernel |
39 |
> |
40 |
> does look scary and didn't tell me more about that module yet. |
41 |
|
42 |
With the systemd module, dracut uses systemd as init. So you have your |
43 |
initramfs, which executes systemd to setup the machine up until /usr |
44 |
is mounted, and then that instance of systemd calls the instance of |
45 |
systemd in the hard drive. |
46 |
|
47 |
If you don't use the systemd module, your initramfs uses a custom init |
48 |
script to mount /usr and similar stuff. It seems to work, but I trust |
49 |
more systemd to do it, and I certainly prefer not to rely on any |
50 |
script during boot up. |
51 |
|
52 |
Also, for non-trivial setups, I'm sure systemd handles them better |
53 |
that a custom init script; that's why I recommended John to use the |
54 |
systemd module. |
55 |
|
56 |
Regards. |
57 |
-- |
58 |
Canek Peláez Valdés |
59 |
Profesor de asignatura, Facultad de Ciencias |
60 |
Universidad Nacional Autónoma de México |