Files
meta-rust/scripts/setup-env.sh
2016-11-30 15:39:38 -05:00

13 lines
277 B
Bash
Executable File

#!/bin/bash -e
mkdir -p build
total_mem=`grep MemTotal /proc/meminfo | awk '{print $2}'`
# Only have the slaves with large amounts of RAM mount the tmpfs
if [ "$total_mem" -ge "67108864" ]; then
sudo mount -t tmpfs -o size=64G,mode=755,uid=${UID} tmpfs build
fi
exit 0