From 8d8001c4374f697414bc03bdfd71773994eeb79c Mon Sep 17 00:00:00 2001 From: chenmaodong Date: Tue, 9 Mar 2021 16:51:31 +0800 Subject: [PATCH] fix aesmd service start error Signed-off-by: chenmaodong (cherry picked from commit 9bc8c1105675b6177e9eed535de678097122f9b8) --- linux-sgx.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/linux-sgx.spec b/linux-sgx.spec index b3d178a..7062742 100644 --- a/linux-sgx.spec +++ b/linux-sgx.spec @@ -1,6 +1,6 @@ Name: linux-sgx Version: 2.11.100 -Release: 5 +Release: 6 Summary: Intel(R) Software Guard Extensions for Linux* OS ExclusiveArch: x86_64 License: BSD-3-Clause @@ -698,7 +698,7 @@ install -D ./linux/installer/bin/sgx_linux_x64_sdk_2.11.100.2.bin $RPM_BUILD_ROO source /opt/intel/sgxsdk/environment %post -n sgx-aesm-service -if [ -x %{_install_path}/startup.sh ]; then %{_install_path}/startup.sh; fi +if [ -x /opt/intel/sgx-aesm-service/startup.sh ]; then /opt/intel/sgx-aesm-service/startup.sh; fi %post -n libsgx-enclave-common udevadm trigger &>/dev/null || true @@ -814,7 +814,7 @@ rm -f /usr/local/bin/PCKIDRetrievalTool echo -e "Uninstallation succeed!" %preun -n sgx-aesm-service -if [ -x %{_install_path}/cleanup.sh ]; then %{_install_path}/cleanup.sh; fi +if [ -x /opt/intel/sgx-aesm-service/cleanup.sh ]; then /opt/intel/sgx-aesm-service/cleanup.sh; fi %postun -n sgx-dcap-pccs if which pm2 > /dev/null; then @@ -907,6 +907,9 @@ fi %files -n sgx-ra-service -f %{TOOLS_INSTALLER_RPM_DIR}/sgx-ra-service/build/list-sgx-ra-service %changelog +* Tue Mar 9 2021 chenmaodong - 2.11.100-6 +- rewrite spec + * Mon Mar 8 2021 chenmaodong - 2.11.100-5 - rewrite spec -- Gitee