1 |
On Wed, Nov 12, 2014 at 11:20:53AM +0100, Stefan G. Weichinger wrote: |
2 |
> Am 12.11.2014 um 11:07 schrieb Sam Jorna: |
3 |
> > On Wed, Nov 12, 2014 at 10:42:28AM +0100, Michael Mair-Keimberger |
4 |
> > wrote: |
5 |
> >> On Wed, Nov 12, 2014 at 12:03:04PM +1100, wraeth@×××××××××.au |
6 |
> >> wrote: |
7 |
> >>> On Tue, Nov 11, 2014 at 09:56:09PM +0100, Michael |
8 |
> >>> Mair-Keimberger wrote: |
9 |
> > <snip> |
10 |
> >> systemd. Maybe i could adopt that to my custom one as well. |
11 |
> > </snip> |
12 |
> > |
13 |
> > Working examples are always nice :-) |
14 |
> |
15 |
> Around dracut and grub2 I remember a few bits, maybe they help. |
16 |
> |
17 |
> In /etc/dracut.conf I have (after discussion here): |
18 |
> |
19 |
> # dracut modules to omit |
20 |
> omit_dracutmodules+="systemd" |
21 |
> |
22 |
> (this one means "don't build an instance of systemd *into* the initrd) |
23 |
> |
24 |
> # dracut modules to add to the default |
25 |
> add_dracutmodules+="bash" |
26 |
> |
27 |
> # build initrd only to boot current hardware |
28 |
> hostonly="yes" |
29 |
> hostonly_cmdline="yes" |
30 |
> |
31 |
> I don't use lvm and sw-raid anymore, you might need: |
32 |
> |
33 |
> add_dracutmodules+="lvm bash mdraid" |
34 |
> |
35 |
> or so. |
36 |
> |
37 |
> |
38 |
|
39 |
After playing around some more hours with initram's i've finally found out |
40 |
what my problem was. It is easier than I though :D |
41 |
|
42 |
Basically my changes in my grub config were already correct, however I |
43 |
completely forgot, that, since I wrote my own init script, arg's like |
44 |
"root" and "init" simply weren't used by my script... |
45 |
If you look at my script, I only check the cmdline for "lvm", so |
46 |
setting "init" or "root" haven't any effect at all :D |
47 |
|
48 |
That means, after modifying my init script, using |
49 |
"/usr/lib/systemd/systemd" as init, systemd booted up. It's still not |
50 |
perfect - it looks like it can't mount other lvm partition's and thus |
51 |
only boot's into maintains mode - but it boot's :) |
52 |
|
53 |
Regarding dracut: Even though I got it to work, it also just bootet |
54 |
openrc and not systemd. Don't know why and I didn't digged further after |
55 |
it worked with my own script. |
56 |
|
57 |
Regarding LVM: |
58 |
As mentioned systemd can't mount my lvm partitions from fstab. Those lvm |
59 |
partitions should be mounted by UUID, but it seems like systemd can't |
60 |
find them, even though there are available afterwards (under |
61 |
/dev/vg0/...). |
62 |
If I comment them out in /etc/fstab (they are not important) systemd |
63 |
boots just fine. I've also set "use_lvmetad = 1" in /etc/lvm/lvm.conf as |
64 |
mentioned at the systemd wiki. |
65 |
|
66 |
Any clue why that doesn't work? |
67 |
|
68 |
-- |
69 |
greetings |
70 |
Michael Mair-Keimberger |