mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 12:42:24 +00:00
multipath-tools: deprecate systemd-udev-settle.service
The systemd service manifest provided with the multipath-tools source makes reference to the systemd-udev-settle.service, and this in turn triggers deprecation warnings on startup. This patch removes these references to silence these warnings.
This commit is contained in:
parent
a85dcd9ca3
commit
c344317f18
|
@ -19,9 +19,11 @@ stdenv.mkDerivation rec {
|
|||
substituteInPlace libmultipath/Makefile \
|
||||
--replace /usr/include/libdevmapper.h ${lib.getDev lvm2}/include/libdevmapper.h
|
||||
|
||||
# systemd-udev-settle.service is deprecated.
|
||||
substituteInPlace multipathd/multipathd.service \
|
||||
--replace /sbin/modprobe ${lib.getBin kmod}/sbin/modprobe \
|
||||
--replace /sbin/multipathd "$out/bin/multipathd"
|
||||
--replace /sbin/multipathd "$out/bin/multipathd" \
|
||||
--replace " systemd-udev-settle.service" ""
|
||||
|
||||
sed -i -re '
|
||||
s,^( *#define +DEFAULT_MULTIPATHDIR\>).*,\1 "'"$out/lib/multipath"'",
|
||||
|
|
Loading…
Reference in a new issue