From 7c732919dbd3f54b62119f2643e66b34df9cb221 Mon Sep 17 00:00:00 2001 From: Thilo Fromm Date: Mon, 18 Dec 2023 18:58:34 +0100 Subject: [PATCH] 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 --- sdk_lib/sdk_init_selfcontained.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sdk_lib/sdk_init_selfcontained.sh b/sdk_lib/sdk_init_selfcontained.sh index 76b08b3c21..c5006f841e 100755 --- a/sdk_lib/sdk_init_selfcontained.sh +++ b/sdk_lib/sdk_init_selfcontained.sh @@ -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"