Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Commit

Permalink
Don't unpack Rust toolchain elements
Browse files Browse the repository at this point in the history
Rust toolchain elements use a lot of disk space and are not needed for
compiling GPU drivers.

Tested on cos-81 and cos-89 with and without the -p option.
  • Loading branch information
rkolchmeyer committed Mar 8, 2021
1 parent 5b97465 commit a663549
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cos-gpu-installer-docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,12 @@ install_cross_toolchain_pkg() {
return ${RETCODE_ERROR}
fi

tar xf "${pkg_name}"
# Don't unpack Rust toolchain elements because they are not needed and they
# use a lot of disk space.
tar xf "${pkg_name}" \
--exclude='./usr/lib64/rustlib*' \
--exclude='./lib/librustc*' \
--exclude='./usr/lib64/librustc*'
rm "${pkg_name}"
popd
fi
Expand Down

0 comments on commit a663549

Please sign in to comment.