sdk_container: fix submodules parent path in container

Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
This commit is contained in:
Thilo Fromm 2021-10-29 10:25:05 +02:00 committed by flatcar-ci
parent 5ed28497ba
commit 2324c5eeff
4 changed files with 9 additions and 0 deletions

View File

@ -103,6 +103,8 @@ if [ -z "$stat" ] ; then
docker create $tty -i \
-v /dev:/dev \
-v "$(pwd)/sdk_container:/mnt/host/source/" \
-v "$(pwd)/sdk_container/git-override/.git-coreos-overlay:/mnt/host/source/src/third_party/coreos-overlay/.git" \
-v "$(pwd)/sdk_container/git-override/.git-portage-stable:/mnt/host/source/src/third_party/portage-stable/.git" \
-v "$(pwd)/__build__/images:/mnt/host/source/src/build" \
-v "$(pwd):/mnt/host/source/src/scripts" \
$gpg_volumes \

View File

@ -0,0 +1 @@
gitdir: ../../scripts/.git/modules/sdk_container/src/third_party/coreos-overlay

View File

@ -0,0 +1 @@
gitdir: ../../scripts/.git/modules/sdk_container/src/third_party/portage-stable

View File

@ -0,0 +1,5 @@
# GIT overrides for submodules
In the SDK container, the scripts root is at a different relative path to the submodules.
The overrides in this directory are into coreos-overlay/.git and portage-stable.gitso the submodules find itheir parents.