Skip to content
Snippets Groups Projects
Commit 1658960e authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

fix: make /usr/local real, and /usr/._local/${HASH} the link

parent b4d07b04
Branches
Tags
1 merge request!852fix: make /usr/local real, and /usr/._local/${HASH} the link
...@@ -301,13 +301,14 @@ COPY --from=staging /usr/bin/docker-shell /usr/bin/docker-shell ...@@ -301,13 +301,14 @@ COPY --from=staging /usr/bin/docker-shell /usr/bin/docker-shell
ENV SPACK_ROOT=/opt/spack ENV SPACK_ROOT=/opt/spack
SHELL ["docker-shell"] SHELL ["docker-shell"]
## ensure /usr/local link is pointing to the right view ## ensure /usr/local is the view, not a symlink
RUN <<EOF RUN <<EOF
set -ex set -ex
rm -rf /usr/local rm -rf /usr/local
PREFIX_PATH=$(realpath $(ls /usr/._local/ | tail -n1)) PREFIX_PATH=$(realpath $(ls /usr/._local/ | tail -n1))
echo "Found spack true prefix path to be $PREFIX_PATH" echo "Found spack true prefix path to be $PREFIX_PATH"
ln -s /usr/._local/${PREFIX_PATH} /usr/local mv /usr/._local/${PREFIX_PATH} /usr/local
ln -s /usr/local /usr/._local/${PREFIX_PATH}
EOF EOF
## set the local spack configuration ## set the local spack configuration
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment