By passing --rootprefix= you can get systemd-udevd installed to
/lib/systemd, as opposed to /usr/lib/systemd
And by logic, network configuration is needed to accompany the daemon
since /usr might not be mounted yet,
the network configuration needs to go to same prefix with the systemd-udevd

Currently we are overriding networkdir= at `make install` argument in
Gentoo's package
for udev, but obviously that is only a workaround.

This patch fixes things.

Other than this, I've had no issues with building, packaging, and
running udev separately without systemd from the systemd tree.
Keep up the great work! Thanks!

- Samuli
>From 44180dccea7ea9dee2c40f012d6b0b3e558c0e0b Mon Sep 17 00:00:00 2001
From: Samuli Suominen <ssuomi...@gentoo.org>
Date: Fri, 21 Feb 2014 16:14:51 +0200
Subject: [PATCH] With --rootprefix= systemd-udevd gets installed to
 /lib/systemd, and since the network configuration is also required during
 early boot, it should be available there with it. Using --prefix= is not an
 option since it would put everything, including pkg-config files, man pages,
 documentation, to / which is not wanted. This commit puts 99-default.link to
 /lib/systemd/network/ when required.

---
 Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index f6c22bd..1fc23f7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -87,7 +87,7 @@ userunitdir=$(prefix)/lib/systemd/user
 userpresetdir=$(prefix)/lib/systemd/user-preset
 tmpfilesdir=$(prefix)/lib/tmpfiles.d
 sysctldir=$(prefix)/lib/sysctl.d
-networkdir=$(prefix)/lib/systemd/network
+networkdir=$(rootprefix)/lib/systemd/network
 pkgincludedir=$(includedir)/systemd
 systemgeneratordir=$(rootlibexecdir)/system-generators
 usergeneratordir=$(prefix)/lib/systemd/user-generators
-- 
1.8.5.5

_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to