diff options
author | Paul Sokolovsky <paul.sokolovsky@linaro.org> | 2021-04-05 17:24:28 +0300 |
---|---|---|
committer | Paul Sokolovsky <paul.sokolovsky@linaro.org> | 2021-04-05 17:24:28 +0300 |
commit | 71f11713d1ed4329098e26992e521f6d645b7f38 (patch) | |
tree | aa01a6ecd6d2e1bb2922c2993ef4a7ebe47f30fa /lite-aeolus | |
parent | 4853110d694e34b18403daf2e7107e1ebd47050f (diff) |
lite-aeolus: Instead of using sudo to install Zephyr SDK, chown parent dir
This is continued workarounds for a situation when we randomly get a
/home/buildslave/srv/ volume not writable by us on "docker-bionic-amd64"
builder. (https://projects.linaro.org/browse/LSS-2205)
Change-Id: Ib568070a612b686b2b7d3c9ad338529b4cf3d6a3
Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
Diffstat (limited to 'lite-aeolus')
-rw-r--r-- | lite-aeolus/build-init.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lite-aeolus/build-init.sh b/lite-aeolus/build-init.sh index 0cde4495e2..a20d87a93a 100644 --- a/lite-aeolus/build-init.sh +++ b/lite-aeolus/build-init.sh @@ -75,11 +75,12 @@ install_zephyr_sdk() { test -d ${ZEPHYR_SDK_INSTALL_DIR} && return 0 test -f ${ZEPHYR_SDK_INSTALL_DIR}.lck && exit 1 - sudo touch ${ZEPHYR_SDK_INSTALL_DIR}.lck + sudo chown ${USER} ${ZEPHYR_SDK_INSTALL_DIR}/.. + touch ${ZEPHYR_SDK_INSTALL_DIR}.lck wget -q "${ZEPHYR_SDK_URL}" chmod +x $(basename ${ZEPHYR_SDK_URL}) ./$(basename ${ZEPHYR_SDK_URL}) --quiet --nox11 -- <<< ${ZEPHYR_SDK_INSTALL_DIR} - sudo rm -f ${ZEPHYR_SDK_INSTALL_DIR}.lck + rm -f ${ZEPHYR_SDK_INSTALL_DIR}.lck } install_zephyr_sdk |