[tools] Checking aesm service is not necessary for SGX2

This commit is contained in:
Zheng, Qi 2022-03-03 17:13:11 +08:00 committed by Zongmin.Gu
parent df36a6bbbb
commit cd5c913dc7

@ -121,6 +121,12 @@ check_aesm_service() {
return
fi
# AESM is not necessary for SGX2
lscpu | grep sgx_lc > /dev/null 2>&1
if [ $? -eq 0 ]; then
return
fi
AESM_SOCKET_FILE=/var/run/aesmd/aesm.socket
for i in $(seq 1 3); do
if [ -S "$AESM_SOCKET_FILE" ]; then