Skip to content

Commit

Permalink
Merge pull request #38 from q2ven/ena-ptp
Browse files Browse the repository at this point in the history
Add symlink for ENA PTP device.
  • Loading branch information
fred-lefebvre authored Nov 22, 2024
2 parents 066b044 + eaa7186 commit 0f6b231
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions 51-ec2-ena-ptp-device.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SUBSYSTEM=="ptp", ATTR{clock_name}=="ena-ptp-*", SYMLINK += "ptp_ena"
6 changes: 6 additions & 0 deletions amazon-ec2-utils.spec
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Source23: ec2nvme-nsid
Source24: ebsnvme-id
Source25: 51-ec2-xen-vbd-devices.rules
Source26: 53-ec2-read-ahead-kb.rules
Source27: 51-ec2-ena-ptp-device.rules

URL: https://github.com/aws/amazon-ec2-utils
BuildArch: noarch
Expand Down Expand Up @@ -47,6 +48,7 @@ install -m755 %{SOURCE1} $RPM_BUILD_ROOT/%{_sbindir}
install -m644 %{SOURCE2} $RPM_BUILD_ROOT%{_udevrulesdir}
install -m644 %{SOURCE25} $RPM_BUILD_ROOT%{_udevrulesdir}
install -m644 %{SOURCE26} $RPM_BUILD_ROOT%{_udevrulesdir}
install -m644 %{SOURCE27} $RPM_BUILD_ROOT%{_udevrulesdir}
# Install 60-cdrom_id.rules to /etc rather than %{_udevrulesdir}
# because it is intended as an override of a systemd-provided rules
# file:
Expand All @@ -68,13 +70,17 @@ rm -rf $RPM_BUILD_ROOT
%{_sbindir}/ec2nvme-nsid
%{_sbindir}/ebsnvme-id
%{_sbindir}/ec2udev-vbd
/usr/lib/udev/rules.d/51-ec2-ena-ptp-device.rules
/usr/lib/udev/rules.d/51-ec2-hvm-devices.rules
/usr/lib/udev/rules.d/51-ec2-xen-vbd-devices.rules
/usr/lib/udev/rules.d/53-ec2-read-ahead-kb.rules
/usr/lib/udev/rules.d/70-ec2-nvme-devices.rules
/etc/udev/rules.d/60-cdrom_id.rules

%changelog
* Wed May 29 2024 Kuniyuki Iwashima <[email protected]> - 2.2.1
- Add symlink for ENA PTP device.

* Thu Jan 18 2024 Keith Gable <[email protected]> - 2.2.0-1
- Corrected issue where an ec2-metadata error was written to stdout
- Change ec2nvme-nsid to use Bash string manipulation to improve
Expand Down

0 comments on commit 0f6b231

Please sign in to comment.