Unverified Commit a75b0b38 authored by Grimmauld's avatar Grimmauld
Browse files

gdm: set run-dir to prevent erroneous creation of /var/run as directory if it does not exist

closes #432251

The failure occured because:
1. Root directory has wrong permissions
2. systemd-tmpfiles does not produce necessary symlinks because of that (#432261 gets created first)
3. **gdm creates a directory as a fallback**
4. various services (such as nsncd) fail on startup

Fixing the root directory permissions later does not fix this,
because `systemd-tmpfiles` will not replace an existing directory.

Removing the erroneous `/var/run` directory on a running system does
not fix this, as gdm will recreate the directory on shutdown.
parent 7182ad97
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -65,6 +65,7 @@ stdenv.mkDerivation (finalAttrs: {
    "-Dsystemduserunitdir=${placeholder "out"}/lib/systemd/user"
    "--sysconfdir=/etc"
    "--localstatedir=/var"
    (lib.mesonOption "run-dir" "/run/gdm")
  ];

  nativeBuildInputs = [