commit 232a19d49368fd68f11f85f6ebce62215017d99f
Author: Kate Hsuan <hpa(a)redhat.com>
Date: Mon May 29 16:52:23 2023 +0800
Add a sysfs path check before running udev command
Add a sysfs path patch check to make sure the post-script can ran since
the udev is not able to access at rpm-ostree.
Link:
https://github.com/smallorange/intel-ipu6-camera-hal/issues/2
ipu6-camera-hal.spec | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/ipu6-camera-hal.spec b/ipu6-camera-hal.spec
index dffe5ac..ce552eb 100644
--- a/ipu6-camera-hal.spec
+++ b/ipu6-camera-hal.spec
@@ -9,7 +9,7 @@ Name: ipu6-camera-hal
Summary: Hardware abstraction layer for Intel IPU6
URL:
https://github.com/intel/ipu6-camera-hal
Version: 0.0
-Release: 10.%{commitdate}git%{shortcommit}%{?dist}
+Release: 11.%{commitdate}git%{shortcommit}%{?dist}
License: Apache-2.0
Source0:
https://github.com/intel/%{name}/archive/%{commit}/%{name}-%{shortcommit}...
@@ -92,7 +92,9 @@ install -p -D -m 0644 %{SOURCE4}
%{buildroot}%{_modprobedir}/intel_ipu6_isys.con
%post
/usr/bin/udevadm control --reload
-/usr/bin/udevadm trigger /sys/devices/pci0000:00/0000:00:05.0
+if [ -d /sys/devices/pci0000:00/0000:00:05.0 ]; then
+ /usr/bin/udevadm trigger /sys/devices/pci0000:00/0000:00:05.0
+fi
%files
@@ -110,6 +112,9 @@ install -p -D -m 0644 %{SOURCE4}
%{buildroot}%{_modprobedir}/intel_ipu6_isys.con
%changelog
+* Mon May 29 2023 Kate Hsuan <hpa(a)redhat.com> - 0.0-11.20221112gitcc0b859
+- Add a sysfs path check for rpm-ostree since udev is unable to access in a container
+
* Mon May 15 2023 Hans de Goede <hdegoede(a)redhat.com> - 0.0-10.20221112gitcc0b859
- Add intel_ipu6_isys.conf to make ipu6-driver not clobber /dev/video0