mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-07 13:06:59 +02:00
sdk_lib/sdk_init_selfcontained.sh: fix access rights
This change fixes access rights / file ownership changes in the self-contained SDK init script. Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
This commit is contained in:
parent
fe28bd931c
commit
7c732919db
@ -26,8 +26,12 @@ function clone_version() {
|
||||
}
|
||||
# --
|
||||
|
||||
# Nothing mounted on /mnt/host in self-contained mode
|
||||
sudo chown -R sdk:sdk /home/sdk /mnt/host/source
|
||||
|
||||
version="$(source /mnt/host/source/.repo/manifests/version.txt; echo $FLATCAR_VERSION)"
|
||||
|
||||
mkdir -p /home/sdk/trunk/src/third_party/
|
||||
rmdir /mnt/host/source/src/third_party
|
||||
ln -s /mnt/host/source/src/scripts/sdk_container/src/third_party /mnt/host/source/src/
|
||||
|
||||
clone_version scripts /home/sdk/trunk/src/scripts "$version"
|
||||
|
Loading…
Reference in New Issue
Block a user