Skip to content

Commit

Permalink
Merge pull request coreos#685 from jlebon/pr/add-azure-ptp
Browse files Browse the repository at this point in the history
25rhcos-azure-udev-rules: add 50-azure-ptp.rules
  • Loading branch information
openshift-merge-robot authored Dec 17, 2021
2 parents 8d81e2e + 871e36f commit f42984e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Manual backport of:
# https://github.com/systemd/systemd/commit/32e868f058da8b90add00b2958c516241c532b70
# Can drop once we get to RHEL 8.6:
# https://bugzilla.redhat.com/show_bug.cgi?id=1991834
SUBSYSTEM=="ptp", ATTR{clock_name}=="hyperv", SYMLINK += "ptp_hyperv"
13 changes: 13 additions & 0 deletions tests/kola/version/drop-azure-ptp
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash
# kola: { "exclusive": false }
set -xeuo pipefail

fatal() {
echo "$@" >&2
exit 1
}

if [ -e /usr/lib/udev/rules.d/50-azure-ptp.rules ] && \
grep ptp_hyperv /usr/lib/udev/rules.d/50-udev-default.rules; then
fatal "50-udev-default.rules includes ptp_hyperv symlink; drop 50-azure-ptp.rules"
fi

0 comments on commit f42984e

Please sign in to comment.