From: Michael Mair-Keimberger <m.mairkeimberger@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] difficulties with lvm2+systemd+grub2
Date: Fri, 14 Nov 2014 19:43:18 +0100 [thread overview]
Message-ID: <20141114184318.GA5943@asterix> (raw)
In-Reply-To: <54633485.1060801@xunil.at>
[-- Attachment #1: Type: text/plain, Size: 2445 bytes --]
On Wed, Nov 12, 2014 at 11:20:53AM +0100, Stefan G. Weichinger wrote:
> Am 12.11.2014 um 11:07 schrieb Sam Jorna:
> > On Wed, Nov 12, 2014 at 10:42:28AM +0100, Michael Mair-Keimberger
> > wrote:
> >> On Wed, Nov 12, 2014 at 12:03:04PM +1100, wraeth@wraeth.id.au
> >> wrote:
> >>> On Tue, Nov 11, 2014 at 09:56:09PM +0100, Michael
> >>> Mair-Keimberger wrote:
> > <snip>
> >> systemd. Maybe i could adopt that to my custom one as well.
> > </snip>
> >
> > Working examples are always nice :-)
>
> Around dracut and grub2 I remember a few bits, maybe they help.
>
> In /etc/dracut.conf I have (after discussion here):
>
> # dracut modules to omit
> omit_dracutmodules+="systemd"
>
> (this one means "don't build an instance of systemd *into* the initrd)
>
> # dracut modules to add to the default
> add_dracutmodules+="bash"
>
> # build initrd only to boot current hardware
> hostonly="yes"
> hostonly_cmdline="yes"
>
> I don't use lvm and sw-raid anymore, you might need:
>
> add_dracutmodules+="lvm bash mdraid"
>
> or so.
>
>
After playing around some more hours with initram's i've finally found out
what my problem was. It is easier than I though :D
Basically my changes in my grub config were already correct, however I
completely forgot, that, since I wrote my own init script, arg's like
"root" and "init" simply weren't used by my script...
If you look at my script, I only check the cmdline for "lvm", so
setting "init" or "root" haven't any effect at all :D
That means, after modifying my init script, using
"/usr/lib/systemd/systemd" as init, systemd booted up. It's still not
perfect - it looks like it can't mount other lvm partition's and thus
only boot's into maintains mode - but it boot's :)
Regarding dracut: Even though I got it to work, it also just bootet
openrc and not systemd. Don't know why and I didn't digged further after
it worked with my own script.
Regarding LVM:
As mentioned systemd can't mount my lvm partitions from fstab. Those lvm
partitions should be mounted by UUID, but it seems like systemd can't
find them, even though there are available afterwards (under
/dev/vg0/...).
If I comment them out in /etc/fstab (they are not important) systemd
boots just fine. I've also set "use_lvmetad = 1" in /etc/lvm/lvm.conf as
mentioned at the systemd wiki.
Any clue why that doesn't work?
--
greetings
Michael Mair-Keimberger
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2014-11-14 18:43 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-11 20:56 [gentoo-user] difficulties with lvm2+systemd+grub2 Michael Mair-Keimberger
2014-11-11 21:44 ` Stefan G. Weichinger
2014-11-12 8:22 ` Michael Mair-Keimberger
2014-11-11 21:47 ` Jc García
2014-11-12 8:25 ` Michael Mair-Keimberger
2014-11-11 22:13 ` covici
2014-11-12 9:47 ` Michael Mair-Keimberger
2014-11-12 10:19 ` Stefan G. Weichinger
2014-11-12 11:44 ` covici
2014-11-12 1:03 ` wraeth
2014-11-12 9:42 ` Michael Mair-Keimberger
2014-11-12 10:07 ` Sam Jorna
2014-11-12 10:20 ` Stefan G. Weichinger
2014-11-14 18:43 ` Michael Mair-Keimberger [this message]
2014-11-16 1:21 ` wraeth
2014-11-17 20:39 ` Michael Mair-Keimberger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141114184318.GA5943@asterix \
--to=m.mairkeimberger@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox