systemd: 231 -> 232

Includes adding some more upstream units and removing obsolete (-.slice) ones.
This commit is contained in:
Robin Gloster 2017-01-26 01:52:38 +01:00
parent 6973c7739e
commit a38f1911d3
No known key found for this signature in database
GPG Key ID: 5E4C836C632C2882
4 changed files with 28 additions and 22 deletions

View File

@ -667,8 +667,10 @@ in
config = mkIf config.systemd.network.enable { config = mkIf config.systemd.network.enable {
systemd.additionalUpstreamSystemUnits = systemd.additionalUpstreamSystemUnits = [
[ "systemd-networkd.service" "systemd-networkd-wait-online.service" ]; "systemd-networkd.service" "systemd-networkd-wait-online.service"
"org.freedesktop.network1.busname"
];
systemd.network.units = mapAttrs' (n: v: nameValuePair "${n}.link" (linkToUnit n v)) cfg.links systemd.network.units = mapAttrs' (n: v: nameValuePair "${n}.link" (linkToUnit n v)) cfg.links
// mapAttrs' (n: v: nameValuePair "${n}.netdev" (netdevToUnit n v)) cfg.netdevs // mapAttrs' (n: v: nameValuePair "${n}.netdev" (netdevToUnit n v)) cfg.netdevs

View File

@ -71,7 +71,9 @@ in
config = mkIf cfg.enable { config = mkIf cfg.enable {
systemd.additionalUpstreamSystemUnits = [ "systemd-resolved.service" ]; systemd.additionalUpstreamSystemUnits = [
"systemd-resolved.service" "org.freedesktop.resolve1.busname"
];
systemd.services.systemd-resolved = { systemd.services.systemd-resolved = {
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];

View File

@ -17,6 +17,7 @@ let
"busnames.target" "busnames.target"
"sysinit.target" "sysinit.target"
"sockets.target" "sockets.target"
"exit.target"
"graphical.target" "graphical.target"
"multi-user.target" "multi-user.target"
"network.target" "network.target"
@ -41,11 +42,13 @@ let
"systemd-udevd.service" "systemd-udevd.service"
"systemd-udev-settle.service" "systemd-udev-settle.service"
"systemd-udev-trigger.service" "systemd-udev-trigger.service"
"systemd-hwdb-update.service"
# Consoles. # Consoles.
"getty.target" "getty.target"
"getty@.service" "getty@.service"
"serial-getty@.service" "serial-getty@.service"
"console-getty.service"
"container-getty@.service" "container-getty@.service"
"systemd-vconsole-setup.service" "systemd-vconsole-setup.service"
@ -72,6 +75,7 @@ let
"systemd-journal-flush.service" "systemd-journal-flush.service"
"systemd-journal-gatewayd.socket" "systemd-journal-gatewayd.socket"
"systemd-journal-gatewayd.service" "systemd-journal-gatewayd.service"
"systemd-journal-catalog-update.service"
"systemd-journald-audit.socket" "systemd-journald-audit.socket"
"systemd-journald-dev-log.socket" "systemd-journald-dev-log.socket"
"syslog.socket" "syslog.socket"
@ -104,6 +108,7 @@ let
"systemd-random-seed.service" "systemd-random-seed.service"
"systemd-backlight@.service" "systemd-backlight@.service"
"systemd-rfkill.service" "systemd-rfkill.service"
"systemd-rfkill.socket"
# Hibernate / suspend. # Hibernate / suspend.
"hibernate.target" "hibernate.target"
@ -111,8 +116,8 @@ let
"sleep.target" "sleep.target"
"hybrid-sleep.target" "hybrid-sleep.target"
"systemd-hibernate.service" "systemd-hibernate.service"
"systemd-suspend.service"
"systemd-hybrid-sleep.service" "systemd-hybrid-sleep.service"
"systemd-suspend.service"
# Reboot stuff. # Reboot stuff.
"reboot.target" "reboot.target"
@ -136,10 +141,10 @@ let
# Slices / containers. # Slices / containers.
"slices.target" "slices.target"
"-.slice"
"system.slice" "system.slice"
"user.slice" "user.slice"
"machine.slice" "machine.slice"
"machines.target"
"systemd-machined.service" "systemd-machined.service"
"systemd-nspawn@.service" "systemd-nspawn@.service"
@ -162,12 +167,12 @@ let
"systemd-localed.service" "systemd-localed.service"
"systemd-hostnamed.service" "systemd-hostnamed.service"
"systemd-binfmt.service" "systemd-binfmt.service"
"systemd-exit.service"
] ]
++ cfg.additionalUpstreamSystemUnits; ++ cfg.additionalUpstreamSystemUnits;
upstreamSystemWants = upstreamSystemWants =
[ #"basic.target.wants" [ "sysinit.target.wants"
"sysinit.target.wants"
"sockets.target.wants" "sockets.target.wants"
"local-fs.target.wants" "local-fs.target.wants"
"multi-user.target.wants" "multi-user.target.wants"
@ -176,11 +181,18 @@ let
upstreamUserUnits = upstreamUserUnits =
[ "basic.target" [ "basic.target"
"bluetooth.target"
"busnames.target"
"default.target" "default.target"
"exit.target" "exit.target"
"graphical-session-pre.target"
"graphical-session.target"
"paths.target" "paths.target"
"printer.target"
"shutdown.target" "shutdown.target"
"smartcard.target"
"sockets.target" "sockets.target"
"sound.target"
"systemd-exit.service" "systemd-exit.service"
"timers.target" "timers.target"
]; ];

View File

@ -4,30 +4,21 @@
, kexectools, libmicrohttpd, linuxHeaders ? stdenv.cc.libc.linuxHeaders, libseccomp , kexectools, libmicrohttpd, linuxHeaders ? stdenv.cc.libc.linuxHeaders, libseccomp
, iptables, gnu-efi , iptables, gnu-efi
, autoreconfHook, gettext, docbook_xsl, docbook_xml_dtd_42, docbook_xml_dtd_45 , autoreconfHook, gettext, docbook_xsl, docbook_xml_dtd_42, docbook_xml_dtd_45
, enableKDbus ? false
}: }:
assert stdenv.isLinux; assert stdenv.isLinux;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "231"; version = "232";
name = "systemd-${version}"; name = "systemd-${version}";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "NixOS"; owner = "mayflower";
repo = "systemd"; repo = "systemd";
rev = "3b11791d323cf2d0e00a156967021e1ae9119de2"; rev = "42a48d16c0ec48330286f8332a4628e1d71c759b";
sha256 = "1xzldwd6407jdg6z36smd49d961nmqykpay969i4xfdldcgyjdv0"; sha256 = "18bcxbba1wk44xhlsna18x3c4b07sq6670wnsy2xy1x2kzfnmhdl";
}; };
patches = [
# Fixes tty issues, see #18158. Remove when upgrading to systemd 232.
(fetchpatch {
url = "https://github.com/systemd/systemd/commit/bd64d82c1c0e3fe2a5f9b3dd9132d62834f50b2d.patch";
sha256 = "1gc9fxdlnfmjhbi77xfwcb5mkhryjsdi0rmbh2lq2qq737iyqqwm";
})
];
outputs = [ "out" "lib" "man" "dev" ]; outputs = [ "out" "lib" "man" "dev" ];
buildInputs = buildInputs =
@ -53,7 +44,6 @@ stdenv.mkDerivation rec {
"--with-dbussystemservicedir=$(out)/share/dbus-1/system-services" "--with-dbussystemservicedir=$(out)/share/dbus-1/system-services"
"--with-dbussessionservicedir=$(out)/share/dbus-1/services" "--with-dbussessionservicedir=$(out)/share/dbus-1/services"
"--with-tty-gid=3" # tty in NixOS has gid 3 "--with-tty-gid=3" # tty in NixOS has gid 3
"--enable-compat-libs" # get rid of this eventually
"--disable-tests" "--disable-tests"
"--enable-lz4" "--enable-lz4"
@ -80,7 +70,7 @@ stdenv.mkDerivation rec {
"--with-sysvinit-path=" "--with-sysvinit-path="
"--with-sysvrcnd-path=" "--with-sysvrcnd-path="
"--with-rc-local-script-path-stop=/etc/halt.local" "--with-rc-local-script-path-stop=/etc/halt.local"
] ++ (if enableKDbus then [ "--enable-kdbus" ] else [ "--disable-kdbus" ]); ];
hardeningDisable = [ "stackprotector" ]; hardeningDisable = [ "stackprotector" ];