зеркало из https://github.com/microsoft/oe-engine.git
Merge pull request #77 from vtikoo/use-cfg-version
use .cfg version file for dcap driver
This commit is contained in:
Коммит
a8d135b2b6
|
@ -75,5 +75,5 @@ Deploy VMs
|
|||
```sh
|
||||
az group deployment create --name <deployment name> --resource-group <resource group name>
|
||||
--template-file _output/azuredeploy.json
|
||||
--parameters @_output/azuredeploy.parameters.json
|
||||
--parameters _output/azuredeploy.parameters.json
|
||||
```
|
||||
|
|
|
@ -29,8 +29,8 @@ function installSGXDriver() {
|
|||
retrycmd_if_failure 10 10 120 curl -fsSL -O "https://download.01.org/intel-sgx/latest/version.xml" || exit $ERR_SGX_DRIVERS_INSTALL_TIMEOUT
|
||||
dcap_version="$(grep dcap version.xml | grep -o -E "[.0-9]+")"
|
||||
sgx_driver_folder_url="https://download.01.org/intel-sgx/sgx-dcap/$dcap_version/linux"
|
||||
retrycmd_if_failure 10 10 120 curl -fsSL -O "$sgx_driver_folder_url/SHA256SUM_dcap_$dcap_version" || error_exit "wget SHA256SUM_dcap* failed"
|
||||
matched_line="$(grep "distro/ubuntuServer$version/sgx_linux_x64_driver_.*bin" SHA256SUM_dcap_$dcap_version)"
|
||||
retrycmd_if_failure 10 10 120 curl -fsSL -O "$sgx_driver_folder_url/SHA256SUM_dcap_$dcap_version.cfg" || error_exit "wget SHA256SUM_dcap* failed"
|
||||
matched_line="$(grep "distro/ubuntuServer$version/sgx_linux_x64_driver_.*bin" SHA256SUM_dcap_$dcap_version.cfg)"
|
||||
read -ra tmp_array <<< "$matched_line"
|
||||
sgx_driver_sha256sum_expected="${tmp_array[0]}"
|
||||
sgx_driver_remote_path="${tmp_array[1]}"
|
||||
|
|
Загрузка…
Ссылка в новой задаче