summary refs log blame commit diff
path: root/pkgs/os-specific/linux/systemd/0011-add-rootprefix-to-lookup-dir-paths.patch
blob: fa201126ae27793362410a58a9893e8acc35d9e8 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                                      

                                            
                                                   





                                                                        
                                 

                                                
                                                          
                                   

                           
                   
















                                                  
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Andreas Rammhold <andreas@rammhold.de>
Date: Thu, 9 May 2019 11:15:22 +0200
Subject: [PATCH] add rootprefix to lookup dir paths

systemd does not longer use the UDEVLIBEXEC directory as root for
discovery default udev rules. By adding `$out/lib` to the lookup paths
we should again be able to discover the udev rules amongst other default
files that I might have missed.
---
 src/basic/constants.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/basic/constants.h b/src/basic/constants.h
index 3f96786da9..6e8fb40c08 100644
--- a/src/basic/constants.h
+++ b/src/basic/constants.h
@@ -74,13 +74,15 @@
         "/run/" n "\0"                          \
         "/usr/local/lib/" n "\0"                \
         "/usr/lib/" n "\0"                      \
-        _CONF_PATHS_SPLIT_USR_NULSTR(n)
+        _CONF_PATHS_SPLIT_USR_NULSTR(n)         \
+        ROOTPREFIX "/lib/" n "\0"
 
 #define CONF_PATHS_USR(n)                       \
         "/etc/" n,                              \
         "/run/" n,                              \
         "/usr/local/lib/" n,                    \
-        "/usr/lib/" n
+        "/usr/lib/" n,                          \
+        ROOTPREFIX "/lib/" n
 
 #define CONF_PATHS(n)                           \
         CONF_PATHS_USR(n)                       \