Gentoo Archives: gentoo-user

From: Mike Gilbert <floppym@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] systemd and USE="static"
Date: Thu, 20 Feb 2014 21:59:54
Message-Id: CAJ0EP42LnQM4j2AeYnqCBSA3K8jpsca4dECghyvk8EMctmZbCA@mail.gmail.com
In Reply to: [gentoo-user] systemd and USE="static" by Neil Bothwick
1 On Thu, Feb 20, 2014 at 4:48 PM, Neil Bothwick <neil@××××××××××.uk> wrote:
2 > I thought I'd have another look at systemd, so switched profiles, made
3 > sure I had all the kernel options needed and then did an emerge -uN world.
4 >
5 > It seems the systemd profile masks the static and static-libs USE flags,
6 > which are needed by crytsetup and lvm for my initramfs, which mounts /
7 > from a LUKS partition. Forcing an unmask of these flags in
8 > /etc/portage/profile did no good because when those packages are built
9 > with USE="static" they require a virtual/udev with matching flags, which
10 > systemd cannot provide.
11 >
12 > Is there a way around this or have a I found a reason for not using
13 > systemd that doesn't involve name calling? :-O
14 >
15
16 I would recommend using an initramfs which includes the necessary
17 shared libraries. I'm pretty sure dracut and genkernel-next support
18 this.
19
20 If you roll your own initramfs, this isn't terribly difficult either
21 -- just use ldd to figure out which files you need, and copy them to
22 /lib or /lib64 in the intiramfs image.

Replies

Subject Author
Re: [gentoo-user] systemd and USE="static" Neil Bothwick <neil@××××××××××.uk>