Fix bond CNI install path
Recent commit 54f2f7d6c667e0d26211e713d0b1fd44a527cdaa made changes to the install path of the containernetworking-plugins from /usr/libexec/cni/ to /opt/bin/cni/ as part of making /usr readonly to support OSTree. Since the bond-cni plugin is not distributed with the other containernetworking-plugins, the same change needs to be made in the bond-cni package. Closes-Bug: 1976111 Testing: Ensure /opt/cni/bin/bond exists on both Debian and CentOS. Signed-off-by: Steven Webster <steven.webster@windriver.com> Change-Id: I48b47100d14c77818daf42cb24b7146ae6672e35
This commit is contained in:
parent
27e8171ab6
commit
478a4e59ad
@ -58,8 +58,8 @@ echo "Building bond-cni plugin"
|
|||||||
%gobuild -o "${PWD}/bin/bond" "${PWD}/bond/"
|
%gobuild -o "${PWD}/bin/bond" "${PWD}/bond/"
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -d -p %{buildroot}%{_libexecdir}/cni/
|
install -d -p %{buildroot}/opt/cni/bin
|
||||||
install -p -m 0755 bin/* %{buildroot}/%{_libexecdir}/cni
|
install -p -m 0755 bin/* %{buildroot}/opt/cni/bin
|
||||||
|
|
||||||
#define license tag if not already defined
|
#define license tag if not already defined
|
||||||
%{!?_licensedir:%global license %doc}
|
%{!?_licensedir:%global license %doc}
|
||||||
@ -67,9 +67,11 @@ install -p -m 0755 bin/* %{buildroot}/%{_libexecdir}/cni
|
|||||||
%files
|
%files
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc *.md
|
%doc *.md
|
||||||
%dir %{_libexecdir}/cni
|
%dir /opt/cni/bin
|
||||||
%{_libexecdir}/cni/*
|
/opt/cni/bin/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri May 27 2022 Steven Webster <steven.webster@windriver.com>
|
||||||
|
- Update install directory to /opt/cni/bin.
|
||||||
* Fri Jan 21 2022 Steven Webster <steven.webster@windriver.com>
|
* Fri Jan 21 2022 Steven Webster <steven.webster@windriver.com>
|
||||||
- Initial package, based on v1.0 + 14 additional commits.
|
- Initial package, based on v1.0 + 14 additional commits.
|
||||||
|
@ -1 +1 @@
|
|||||||
bond /usr/libexec/cni/
|
bond /opt/cni/bin/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user