cni: use /var/opt/cni
This will allow bootstrap on Debian to work without unlocking ostree. Currently /opt/cni is a symlink to a /usr subdir. /usr is mounted read-only. This lead to issues when containers try to write inside /opt/cni. Update software to use /var/opt/cni instead. The problematic symlink is created by the meta-lat component. This commit can be reverted later if the meta-lat design is changed. This is an enhancement to the following series: https://review.opendev.org/c/starlingx/ansible-playbooks/+/825354 https://review.opendev.org/c/starlingx/integ/+/825346 https://review.opendev.org/c/starlingx/stx-puppet/+/825355 https://review.opendev.org/c/starlingx/integ/+/843965 Test on AIO-SX: CentOS: PASS: unlocked enabled available Debian: PASS: bootstrap without ostree unlock. PASS: unlocked enabled available Story: 2009101 Task: 44314 Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com> Change-Id: Id6ced63f913ed21954c379b031ae74683cd4d86f
This commit is contained in:
parent
414b9934e1
commit
1ed2cdf186
@ -58,8 +58,8 @@ echo "Building bond-cni plugin"
|
||||
%gobuild -o "${PWD}/bin/bond" "${PWD}/bond/"
|
||||
|
||||
%install
|
||||
install -d -p %{buildroot}/opt/cni/bin
|
||||
install -p -m 0755 bin/* %{buildroot}/opt/cni/bin
|
||||
install -d -p %{buildroot}/var/opt/cni/bin
|
||||
install -p -m 0755 bin/* %{buildroot}/var/opt/cni/bin
|
||||
|
||||
#define license tag if not already defined
|
||||
%{!?_licensedir:%global license %doc}
|
||||
@ -67,10 +67,12 @@ install -p -m 0755 bin/* %{buildroot}/opt/cni/bin
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc *.md
|
||||
%dir /opt/cni/bin
|
||||
/opt/cni/bin/*
|
||||
%dir /var/opt/cni/bin
|
||||
/var/opt/cni/bin/*
|
||||
|
||||
%changelog
|
||||
* Mon Jun 06 2022 Dan Voiculeasa <dan.voiculeasa@windriver.com>
|
||||
- Update install directory to /var/opt/cni/bin.
|
||||
* 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>
|
||||
|
@ -1 +1 @@
|
||||
bond /opt/cni/bin/
|
||||
bond /var/opt/cni/bin/
|
||||
|
@ -77,8 +77,8 @@ for d in $PLUGINS; do
|
||||
done
|
||||
|
||||
%install
|
||||
install -d -p %{buildroot}/opt/cni/bin
|
||||
install -p -m 0755 bin/* %{buildroot}/opt/cni/bin
|
||||
install -d -p %{buildroot}/var/opt/cni/bin
|
||||
install -p -m 0755 bin/* %{buildroot}/var/opt/cni/bin
|
||||
|
||||
%check
|
||||
%if 0%{?with_check}
|
||||
@ -119,10 +119,13 @@ install -p -m 0755 bin/* %{buildroot}/opt/cni/bin
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc *.md
|
||||
%dir /opt/cni/bin
|
||||
/opt/cni/bin/*
|
||||
%dir /var/opt/cni/bin
|
||||
/var/opt/cni/bin/*
|
||||
|
||||
%changelog
|
||||
* Mon Jun 06 2022 Dan Voiculeasa <dan.voiculeasa@windriver.com>
|
||||
- Update install directory to /var/opt/cni/bin.
|
||||
|
||||
* Thu Feb 17 2022 Steven Webster <steven.webster@windriver.com> - 1.0.1
|
||||
- bump to v1.0.1
|
||||
|
||||
|
@ -1 +1 @@
|
||||
usr/bin/* opt/cni/bin
|
||||
usr/bin/* /var/opt/cni/bin
|
||||
|
Loading…
x
Reference in New Issue
Block a user