提交 45bffd2b 编写于 作者: R Renaud Gaubert

RPM creates a symlink during postrans now

This is because in an upgrade the hook package will be removed after the
toolkit package. During that process the hook package will remove the
binary.
Hence we need to create the symlink at the end of the transaction.
Signed-off-by: NRenaud Gaubert <rgaubert@nvidia.com>
上级 27567d58
......@@ -17,6 +17,7 @@ Source3: oci-nvidia-hook.json
Source4: LICENSE
Obsoletes: nvidia-container-runtime < 2.0.0, nvidia-container-runtime-hook
Provides: nvidia-container-runtime-hook
Requires: libnvidia-container-tools >= 0.1.0, libnvidia-container-tools < 2.0.0
%description
......@@ -38,7 +39,7 @@ install -m 755 -t %{buildroot}/usr/libexec/oci/hooks.d oci-nvidia-hook
mkdir -p %{buildroot}/usr/share/containers/oci/hooks.d
install -m 644 -t %{buildroot}/usr/share/containers/oci/hooks.d oci-nvidia-hook.json
%post
%posttrans
ln -sf %{_bindir}/nvidia-container-toolkit %{_bindir}/nvidia-container-runtime-hook
%postun
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册