* [gentoo-user] systemd and USE="static"
@ 2014-02-20 21:48 Neil Bothwick
2014-02-20 21:59 ` Mike Gilbert
2014-02-20 22:23 ` [gentoo-user] " eroen
0 siblings, 2 replies; 4+ messages in thread
From: Neil Bothwick @ 2014-02-20 21:48 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 717 bytes --]
I thought I'd have another look at systemd, so switched profiles, made
sure I had all the kernel options needed and then did an emerge -uN world.
It seems the systemd profile masks the static and static-libs USE flags,
which are needed by crytsetup and lvm for my initramfs, which mounts /
from a LUKS partition. Forcing an unmask of these flags in
/etc/portage/profile did no good because when those packages are built
with USE="static" they require a virtual/udev with matching flags, which
systemd cannot provide.
Is there a way around this or have a I found a reason for not using
systemd that doesn't involve name calling? :-O
--
Neil Bothwick
Genius is 99% inspiration and 2% arithmetic
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] systemd and USE="static"
2014-02-20 21:48 [gentoo-user] systemd and USE="static" Neil Bothwick
@ 2014-02-20 21:59 ` Mike Gilbert
2014-02-21 1:01 ` Neil Bothwick
2014-02-20 22:23 ` [gentoo-user] " eroen
1 sibling, 1 reply; 4+ messages in thread
From: Mike Gilbert @ 2014-02-20 21:59 UTC (permalink / raw
To: gentoo-user
On Thu, Feb 20, 2014 at 4:48 PM, Neil Bothwick <neil@digimed.co.uk> wrote:
> I thought I'd have another look at systemd, so switched profiles, made
> sure I had all the kernel options needed and then did an emerge -uN world.
>
> It seems the systemd profile masks the static and static-libs USE flags,
> which are needed by crytsetup and lvm for my initramfs, which mounts /
> from a LUKS partition. Forcing an unmask of these flags in
> /etc/portage/profile did no good because when those packages are built
> with USE="static" they require a virtual/udev with matching flags, which
> systemd cannot provide.
>
> Is there a way around this or have a I found a reason for not using
> systemd that doesn't involve name calling? :-O
>
I would recommend using an initramfs which includes the necessary
shared libraries. I'm pretty sure dracut and genkernel-next support
this.
If you roll your own initramfs, this isn't terribly difficult either
-- just use ldd to figure out which files you need, and copy them to
/lib or /lib64 in the intiramfs image.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gentoo-user] Re: systemd and USE="static"
2014-02-20 21:48 [gentoo-user] systemd and USE="static" Neil Bothwick
2014-02-20 21:59 ` Mike Gilbert
@ 2014-02-20 22:23 ` eroen
1 sibling, 0 replies; 4+ messages in thread
From: eroen @ 2014-02-20 22:23 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1435 bytes --]
On Thu, 20 Feb 2014 21:48:01 +0000, Neil Bothwick <neil@digimed.co.uk>
wrote:
> I thought I'd have another look at systemd, so switched profiles, made
> sure I had all the kernel options needed and then did an emerge -uN
> world.
>
> It seems the systemd profile masks the static and static-libs USE
> flags, which are needed by crytsetup and lvm for my initramfs, which
> mounts / from a LUKS partition. Forcing an unmask of these flags in
> /etc/portage/profile did no good because when those packages are built
> with USE="static" they require a virtual/udev with matching flags,
> which systemd cannot provide.
>
> Is there a way around this or have a I found a reason for not using
> systemd that doesn't involve name calling? :-O
>
You are right, systemd dropped support for static libudev (or any other
library for that matter) in version 205.[1] If you want to use systemd
provided libudev for lvm & c. in an initramfs, you'll need to include
the shared library and binaries linked to it.
I believe both dracut and genkernel-next support shared libudev, while
the current versions of genkernel do not (hence why genkernel is masked
on the */systemd profiles). While I have limited experience with
genkernel, dracut has dragged in all the shared libraries I have
required of it.
1:
http://cgit.freedesktop.org/systemd/systemd/commit/?id=5e63ce78b5018ba612e794a610a6f13c5eefade7
--
eroen
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] systemd and USE="static"
2014-02-20 21:59 ` Mike Gilbert
@ 2014-02-21 1:01 ` Neil Bothwick
0 siblings, 0 replies; 4+ messages in thread
From: Neil Bothwick @ 2014-02-21 1:01 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1019 bytes --]
On Thu, 20 Feb 2014 16:59:39 -0500, Mike Gilbert wrote:
> > It seems the systemd profile masks the static and static-libs USE
> > flags, which are needed by crytsetup and lvm for my initramfs, which
> > mounts / from a LUKS partition. Forcing an unmask of these flags in
> > /etc/portage/profile did no good because when those packages are built
> > with USE="static" they require a virtual/udev with matching flags,
> > which systemd cannot provide.
> I would recommend using an initramfs which includes the necessary
> shared libraries. I'm pretty sure dracut and genkernel-next support
> this.
>
> If you roll your own initramfs, this isn't terribly difficult either
> -- just use ldd to figure out which files you need, and copy them to
> /lib or /lib64 in the intiramfs image.
That was the answer. I knocked up a script that ldd'd the files included
in the initramfs and added them to its config file. Thanks.
--
Neil Bothwick
WinErr 006: Malicious error - Desqview found on drive
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-02-21 1:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-20 21:48 [gentoo-user] systemd and USE="static" Neil Bothwick
2014-02-20 21:59 ` Mike Gilbert
2014-02-21 1:01 ` Neil Bothwick
2014-02-20 22:23 ` [gentoo-user] " eroen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox