Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 490400 - sys-kernel/genkernel{,-next} - Do you have a systemd and lvm2 root solution?
Summary: sys-kernel/genkernel{,-next} - Do you have a systemd and lvm2 root solution?
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-04 15:38 UTC by Roc Vallès
Modified: 2013-11-06 21:21 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roc Vallès 2013-11-04 15:38:53 UTC
As per #463250 (closed without a solution), booting an lvm2 root on a systemd is not possible.

An lvm2 root is a relatively common scenario, so a solution for this is needed.

Reproducible: Always
Comment 1 Fabio Erculiani (RETIRED) gentoo-dev 2013-11-06 15:32:38 UTC
You need to use an initramfs, generated by genkernel-next with the --udev flag.
Then you will be able to use lvm and systemd.

There is nothing to fix :) It already works.
Comment 2 Roc Vallès 2013-11-06 17:47:11 UTC
(In reply to Fabio Erculiani from comment #1)
> You need to use an initramfs, generated by genkernel-next with the --udev
> flag.
> Then you will be able to use lvm and systemd.
> 
> There is nothing to fix :) It already works.

Hmmkay, my fault then. Was just a matter of explicitly requesting static-libs from lvm2, which cascaded down to virtual/udev wanting static-libs... A grep in package.use/ shows it was my fault, and that I had assumed genkernel-next was requesting that flag through cryptsetup.

It appears the old culprit (cryptsetup with static use, which I need to mount /) doesn't depend on that anymore.

Therefore, nevermind.
Comment 3 Pacho Ramos gentoo-dev 2013-11-06 20:09:42 UTC
If you switch to any new gnome/kde systemd profiles you will prevent strange dependency issues like that ;)
Comment 4 Roc Vallès 2013-11-06 21:21:57 UTC
(In reply to Pacho Ramos from comment #3)
> If you switch to any new gnome/kde systemd profiles you will prevent strange
> dependency issues like that ;)

I could never bring myself to use a desktop-specific profile as while I use KDE I love to keep the alternatives installed to try them from time to time rather than commit myself with a kde profile... yet a more generic systemd profile would be an easy sell.