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)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 15 Aug 2024 06:38:46 +0000 (15:38 +0900)
commit6bd12be3fa7761f190e17efdbdbff4440da7528b
tree6aeffffec7e52b598b3764f057bfcdd91f0f55ce
parent6ddf879ce860bbd022b99c611ec896a113c39295
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>
rules.d/50-udev-default.rules.in