This repository was archived by the owner on Aug 6, 2020. It is now read-only.
Repository navigation
Conversation
systemd started filtering environment variables of generators and changes PATH to DEFAULT_PATH. This change adds paths that we are using to the constants while still allowing fallback to the "standard" FHS-style locations (e.g. inside constainers, on non-nixos systems, ...).
Member
Author
|
I tested this by compiling the diff --git a/pkgs/os-specific/linux/systemd/default.nix b/pkgs/os-specific/linux/systemd/default.nix
index 2a17a0a2875..074ba214af8 100644
--- a/pkgs/os-specific/linux/systemd/default.nix
+++ b/pkgs/os-specific/linux/systemd/default.nix
@@ -24,10 +24,10 @@ in stdenv.mkDerivation rec {
# When updating, use https://github.com/systemd/systemd-stable tree, not the development one!
# Also fresh patches should be cherry-picked from that tree to our current one.
src = fetchFromGitHub {
- owner = "NixOS";
+ owner = "andir";
repo = "systemd";
- rev = "nixos-v${version}";
- sha256 = "1rzl0iqrpa4ajvama5k3cb3yc7893c55kzcxkl3cyavpdzsw5505";
+ rev = "e674dcb7e5e5d6c03f59c2f94530de1150c4e913";
+ sha256 = "17jxib7rghprifl4d23y7l76ivlj09cflvv0pliq1a4rkpl7mkfy";
};
diff --git a/nixos/tests/hibernate.nix b/nixos/tests/hibernate.nix
index 274aa7becc8..18c285297a1 100644
--- a/nixos/tests/hibernate.nix
+++ b/nixos/tests/hibernate.nix
@@ -6,6 +6,7 @@ import ./make-test.nix (pkgs: {
nodes = {
machine = { config, lib, pkgs, ... }: with lib; {
virtualisation.emptyDiskImages = [ config.virtualisation.memorySize ];
+ boot.kernelParams = [ "resume" ];
systemd.services.backdoor.conflicts = [ "sleep.target" ];The I am not sure what the best way to deal with this is. We could add that to |
|
Member
Author
|
I implemented an alternative approach here: https://github.com/andir/systemd/commits/nixos-v239-test It also passes all release tests on 18.09 so at least the previous regressions are also done. |
|
I think the alternative approach is better and this ticket should be closed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
systemd started filtering environment variables of generators and
changes PATH to DEFAULT_PATH. This change adds paths that we are using
to the constants while still allowing fallback to the "standard"
FHS-style locations (e.g. inside constainers, on non-nixos systems, ...).
I am not entirely sure about the impact of this change beyond fixing the PATH that is propagated towards generators (like systemd-fstab-generator).
From the looks of it this is really just touching how systemd itself calls and discovers binaries for things like fsck.
cc @fpletz