diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2020-01-23 12:04:12 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2020-01-25 11:54:50 +0800 |
commit | 9cf513f905bcc2a62f2d2f62c78bfc21781419af (patch) | |
tree | ae11cb5ef02f99802394dbe00900a8c6dd4c5938 | |
parent | 938365251d8f82601d930a444d74d0b90fc95efc (diff) | |
download | talos-petitboot-9cf513f905bcc2a62f2d2f62c78bfc21781419af.tar.gz talos-petitboot-9cf513f905bcc2a62f2d2f62c78bfc21781419af.zip |
docker: build petitboot outside of the source dir
Ensure that srcdir != builddir builds will keep working.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
-rwxr-xr-x | docker/build-pb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/build-pb b/docker/build-pb index 6229550..e892177 100755 --- a/docker/build-pb +++ b/docker/build-pb @@ -137,4 +137,4 @@ cd "${TOP_DIR}" docker_args="${docker_base_args} ${docker_user_args}" run_cmd "docker run ${docker_args} ${DOCKER_TAG} /bin/bash \ -e ${bash_debug} \ - -c './bootstrap && ${flags} ./configure ${configure_opts[@]} && ${makecmd} && ${docker_extra}'" + -c './bootstrap && d=\$(mktemp -d) && cd \$d && ${flags} /opt/pb/configure ${configure_opts[@]} && ${makecmd} && ${docker_extra}'" |