Gentoo Archives: gentoo-user

From: eroen <eroen@××××××××××××.eu>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: systemd and USE="static"
Date: Thu, 20 Feb 2014 22:23:45
Message-Id: 20140220232321.2b364338@falcon.eroen.eu
In Reply to: [gentoo-user] systemd and USE="static" by Neil Bothwick
1 On Thu, 20 Feb 2014 21:48:01 +0000, Neil Bothwick <neil@××××××××××.uk>
2 wrote:
3 > I thought I'd have another look at systemd, so switched profiles, made
4 > sure I had all the kernel options needed and then did an emerge -uN
5 > world.
6 >
7 > It seems the systemd profile masks the static and static-libs USE
8 > flags, which are needed by crytsetup and lvm for my initramfs, which
9 > mounts / from a LUKS partition. Forcing an unmask of these flags in
10 > /etc/portage/profile did no good because when those packages are built
11 > with USE="static" they require a virtual/udev with matching flags,
12 > which systemd cannot provide.
13 >
14 > Is there a way around this or have a I found a reason for not using
15 > systemd that doesn't involve name calling? :-O
16 >
17
18 You are right, systemd dropped support for static libudev (or any other
19 library for that matter) in version 205.[1] If you want to use systemd
20 provided libudev for lvm & c. in an initramfs, you'll need to include
21 the shared library and binaries linked to it.
22
23 I believe both dracut and genkernel-next support shared libudev, while
24 the current versions of genkernel do not (hence why genkernel is masked
25 on the */systemd profiles). While I have limited experience with
26 genkernel, dracut has dragged in all the shared libraries I have
27 required of it.
28
29 1:
30 http://cgit.freedesktop.org/systemd/systemd/commit/?id=5e63ce78b5018ba612e794a610a6f13c5eefade7
31
32 --
33 eroen

Attachments

File name MIME type
signature.asc application/pgp-signature