nixpkgs/pkgs
aszlig 88530e02b6
systemd: Update to latest NixOS branch
Updated to the latest version of the nixos-v237 branch, which fixes two
things:

  * Make sure that systemd looks in /etc for configuration files.
    https://github.com/NixOS/systemd/pull/15
  * Fix handling of the x-initrd.mount option.
    https://github.com/NixOS/systemd/pull/16

I've added NixOS VM tests for both to ensure we won't run into
regressions. The newly added systemd test only tests for that and is by
no means exhaustive, but it's a start.

Personally I only wanted to fix the former issue, because that's the one
I've been debugging. After sending in a pull request for our systemd
fork (https://github.com/NixOS/systemd/pull/17) I got a notice from
@Mic92, that he already fixed this and his fix was even better as it's
even suitable for upstream (so we hopefully can drop that patch
someday).

The reason why the second one came in was simply because it has been
merged before the former, but I thought it would be a good idea to have
tests for that as well.

In addition I've removed the sysconfdir=$out/etc entry to make sure the
default (/etc) is used. Installing is still done to $out, because those
directories that were previously into sysconfdir now get into
factoryconfdir.

Quote from commit NixOS/systemd@98067cc806:

  By default systemd should read all its configuration from /etc.
  Therefore we rely on -Dsysconfdir=/etc in meson as default value.
  Unfortunately this would also lead to installation of systemd's own
  configuration files to `/etc` whereas we are limited to /nix/store. To
  counter that this commit introduces two new configuration variables
  `factoryconfdir` and `factorypkgconfdir` to install systemd's own
  configuration into nix store again, while having executables looking
  up files in /etc.

Tested this change against all of the NixOS VM tests we have in
nixos/release.nix. Between this change and its parent no new tests were
failing (although a lot of them were flaky).

Signed-off-by: aszlig <aszlig@nix.build>
Cc: @Mic92, @tk-ecotelecom, @edolstra, @fpletz
Fixes: #35415
Fixes: #35268
2018-03-03 10:39:38 +01:00
..
applications Merge pull request #36239 from khumba/remove-app-maintainership 2018-03-03 08:09:18 +00:00
build-support callCabal2nix: Fix filtering for non-cleanSourceable sources. 2018-02-28 14:22:19 -05:00
common-updater update-source-version: Fix regex metacharacter 2018-02-17 22:34:12 +02:00
data cantarell-fonts: rename from cantarell_fonts 2018-03-03 00:36:38 +01:00
desktops gnome2.gnome-session: remove 2018-03-02 11:56:45 +01:00
development libftdi: enable async mode 2018-03-02 21:20:54 -06:00
games xmoto: fix build with gcc7 2018-03-02 07:35:18 +01:00
misc libretro: specify license per core 2018-03-02 10:41:16 +10:30
os-specific systemd: Update to latest NixOS branch 2018-03-03 10:39:38 +01:00
servers Merge pull request #35998 from ryantm/auto-update/riemann-0.2.12-to-0.3.0 2018-03-02 18:41:50 +08:00
shells nix-bash-completions: 0.6.3 -> 0.6.4 2018-02-28 19:01:23 +01:00
stdenv prebuilt android tools: Init using SDK 2018-02-27 14:15:39 -05:00
test tree-wide: autorename gnome packages to use dashes 2018-02-25 17:41:16 +01:00
tools Merge pull request #36234 from Ma27/disable-uutils-coreutils-on-darwin 2018-03-03 08:12:00 +00:00
top-level tlaplus: init at 1.5.6 2018-03-02 21:20:54 -06:00