systemd: Use an interface version, just like we have for Upstart
This commit is contained in:
parent
d652ae4253
commit
2547e0e96a
|
@ -70,6 +70,14 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
# The interface version prevents NixOS from switching to an
|
||||||
|
# incompatible systemd at runtime. (Switching across reboots is
|
||||||
|
# fine, of course.) It should be increased whenever systemd changes
|
||||||
|
# in a backwards-incompatible way. If the interface version of two
|
||||||
|
# systemd builds is the same, then we can switch between them at
|
||||||
|
# runtime; otherwise we can't and we need to reboot.
|
||||||
|
passthru.interfaceVersion = 2;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://www.freedesktop.org/wiki/Software/systemd;
|
homepage = http://www.freedesktop.org/wiki/Software/systemd;
|
||||||
description = "A system and service manager for Linux";
|
description = "A system and service manager for Linux";
|
||||||
|
|
Loading…
Reference in New Issue