Merge pull request #203 from flatcar-linux/kai/sdk-entry

sdk_lib/sdk_entry: handle permission error for target version file
This commit is contained in:
Kai Lüke 2022-01-06 19:01:20 +01:00 committed by GitHub
commit 1928852af0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@ chown -R sdk:sdk /home/sdk
echo "Updating board support in '/build/${target}' to use package cache for version '${FLATCAR_VERSION_ID}'" echo "Updating board support in '/build/${target}' to use package cache for version '${FLATCAR_VERSION_ID}'"
echo "---" echo "---"
sudo su sdk -l -c "/home/sdk/trunk/src/scripts/setup_board --board='$target' --regen_configs_only" sudo su sdk -l -c "/home/sdk/trunk/src/scripts/setup_board --board='$target' --regen_configs_only"
echo "TARGET_FLATCAR_VERSION_ID='${FLATCAR_VERSION_ID}'" > "/build/$target/etc/target-version.txt" echo "TARGET_FLATCAR_VERSION_ID='${FLATCAR_VERSION_ID}'" | sudo tee "/build/$target/etc/target-version.txt" >/dev/null
done done
fi fi
) )