Merge pull request #102448 from nlewo/systemd-withRemote-by-default

Systemd with the `remote` feature enabled by default
This commit is contained in:
Florian Klink 2020-11-02 12:34:07 +01:00 committed by GitHub
commit 2308df8881
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 25 additions and 1 deletions

View File

@ -340,6 +340,7 @@ in
systemd-binfmt = handleTestOn ["x86_64-linux"] ./systemd-binfmt.nix {};
systemd-boot = handleTest ./systemd-boot.nix {};
systemd-confinement = handleTest ./systemd-confinement.nix {};
systemd-journal = handleTest ./systemd-journal.nix {};
systemd-timesyncd = handleTest ./systemd-timesyncd.nix {};
systemd-networkd-vrf = handleTest ./systemd-networkd-vrf.nix {};
systemd-networkd = handleTest ./systemd-networkd.nix {};

View File

@ -0,0 +1,20 @@
import ./make-test-python.nix ({ pkgs, ... }:
{
name = "systemd-journal";
meta = with pkgs.stdenv.lib.maintainers; {
maintainers = [ lewo ];
};
machine = { pkgs, lib, ... }: {
services.journald.enableHttpGateway = true;
};
testScript = ''
machine.wait_for_unit("multi-user.target")
machine.succeed(
"${pkgs.curl}/bin/curl -s localhost:19531/machine | ${pkgs.jq}/bin/jq -e '.hostname == \"machine\"'"
)
'';
})

View File

@ -53,6 +53,7 @@
, withKexectools ? lib.any (lib.meta.platformMatch stdenv.hostPlatform) kexectools.meta.platforms
, kexectools
, bashInteractive
, libmicrohttpd
, withAnalyze ? true
, withApparmor ? true
@ -71,7 +72,7 @@
, withNss ? true
, withPCRE2 ? true
, withPolkit ? true
, withRemote ? false # has always been disabled on NixOS, upstream version appears broken anyway
, withRemote ? true
, withResolved ? true
, withShellCompletions ? true
, withTimedated ? true
@ -201,6 +202,7 @@ stdenv.mkDerivation {
++ lib.optional withPCRE2 pcre2
++ lib.optional withResolved libgpgerror
++ lib.optional withSelinux libselinux
++ lib.optional withRemote libmicrohttpd
;
#dontAddPrefix = true;

View File

@ -18812,6 +18812,7 @@ in
withNss = false;
withPCRE2 = false;
withPolkit = false;
withRemote = false;
withResolved = false;
withShellCompletions = false;
withTimedated = false;