Bug#851240: open-vm-tools: Duplicate udev rule

2017-01-13 Thread Bernd Zeimetz

On 2017-01-13 10:26, Bernhard Schmidt wrote:

I propose to drop the Debian specific rule and install the upstream one
at the previous location (with priority < 99 to be able to override if
necessary).


I'll drop the vmware disk related rules from the debian-specific udev
rules file, but I'll leave the priority of the vmware file at 99 as
files in /etc/udev/rules.d always have a higher priority (and you
should not drop system specific stuff in /lib).

Thanks for the bug report,

Bernd

--
 Bernd ZeimetzDebian GNU/Linux Developer
 http://bzed.dehttp://www.debian.org
 GPG Fingerprint: ECA1 E3F2 8E11 2432 D485  DD95 EB36 171A 6FF9 435F



Bug#851240: open-vm-tools: Duplicate udev rule

2017-01-13 Thread Bernhard Schmidt
Package: open-vm-tools
Version: 2:10.1.0-4449150-1
Severity: minor

Dear maintainer,

starting with upstream version 10.1.0-4449150 (at least this is the
upstream version in
https://github.com/bzed/pkg-open-vm-tools/tree/master/open-vm-tools/udev)
open-vm-tools now ship an udev rule setting the timeout by itself.

This leads to two udev rules doing the same, with the upstream rule
matching a superset of ATTRS.

==> 60-open-vm-tools.rules <==
# VMware SCSI devices Timeout adjustment
#
# Modify the timeout value for VMware SCSI devices so that
# in the event of a failover, we don't time out.
# See Bug 271286 for more information.

ACTION=="add|change", SUBSYSTEMS=="scsi", ATTRS{vendor}=="VMware  " , 
ATTRS{model}=="Virtual disk",   RUN+="/bin/sh -c 'echo 180 
>/sys$DEVPATH/device/timeout'"


# VMWare Virtual Sockets permissions

==> 99-vmware-scsi-udev.rules <==
ACTION=="add", SUBSYSTEMS=="scsi", ATTRS{vendor}=="VMware*" , 
ATTRS{model}=="Virtual disk*", RUN+="/bin/sh -c 'echo 180 
>/sys$DEVPATH/device/timeout'"
ACTION=="add", SUBSYSTEMS=="scsi", ATTRS{vendor}=="VMware*" , 
ATTRS{model}=="VMware Virtual S", RUN+="/bin/sh -c 'echo 180 
>/sys$DEVPATH/device/timeout'"

We noticed that because our local system management sets this to a
different value in a rule that gets sorted before 99-vmware-scsi-udev.

I propose to drop the Debian specific rule and install the upstream one
at the previous location (with priority < 99 to be able to override if
necessary).

Bernhard