summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArian van Putten <arian.vanputten@gmail.com>2020-10-02 13:59:12 +0200
committerArian van Putten <arian.vanputten@gmail.com>2020-10-02 14:00:40 +0200
commit353fb8de7c86c39403c4682afcffa349916fe451 (patch)
tree7a8677e5382b9628490c460189bbe28ef14e58e4
parentMerge pull request #99256 from Ma27/sudo-pkg-option (diff)
downloadnixpkgs-353fb8de7c86c39403c4682afcffa349916fe451.tar.gz
systemd: set rootprefix to /run/current-system/systemd
sd_path_lookup_* returns $rootprefix, which was making a cyclic dependency to $out and $lib We also patch systemd in ./0014-add-rootprefix-to-lookup-dir-paths.patch to look for all config files (except unit files; they have their own lookup path logic) in rootprefix. This will keep working
-rw-r--r--pkgs/os-specific/linux/systemd/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/systemd/default.nix b/pkgs/os-specific/linux/systemd/default.nix
index 54060b156f26..99980c6a59da 100644
--- a/pkgs/os-specific/linux/systemd/default.nix
+++ b/pkgs/os-specific/linux/systemd/default.nix
@@ -96,7 +96,7 @@ in stdenv.mkDerivation {
"-Ddbussessionservicedir=${placeholder "out"}/share/dbus-1/services"
"-Ddbussystemservicedir=${placeholder "out"}/share/dbus-1/system-services"
"-Dpamconfdir=${placeholder "out"}/etc/pam.d"
- "-Drootprefix=${placeholder "out"}"
+ "-Drootprefix=/run/current-system/systemd"
"-Dpkgconfiglibdir=${placeholder "dev"}/lib/pkgconfig"
"-Dpkgconfigdatadir=${placeholder "dev"}/share/pkgconfig"
"-Dloadkeys-path=${kbd}/bin/loadkeys"