udev: Handle PTP device symlink properly on udev action 'change'
authorChengen Du <chengen.du@canonical.com>
Mon, 12 Aug 2024 03:41:52 +0000 (11:41 +0800)
committerLuca Boccassi <bluca@debian.org>
Thu, 15 Aug 2024 13:04:41 +0000 (14:04 +0100)
commit2a328ce80923baa55925c99a923c40ec46b86243
tree637d998cbeb002760054cbab45a06d1779a3b9bb
parent2665618555d08fc3877043cac392f1b6573811b7
udev: Handle PTP device symlink properly on udev action 'change'

PTP device symlink creation rules are currently executed only when the
udev action is 'add'. If a user reloads the rules and runs the udevadm
trigger command to reapply changes, the symlink may be deleted, which
can prevent the chronyd service from restarting properly.

Signed-off-by: Chengen Du <chengen.du@canonical.com>
(cherry picked from commit 6bd12be3fa7761f190e17efdbdbff4440da7528b)
rules.d/50-udev-default.rules.in