Skip to content

Commit

Permalink
check whether location for temporary directories for build container …
Browse files Browse the repository at this point in the history
…has support for extended attributes
  • Loading branch information
boegel committed Oct 18, 2021
1 parent 98e3f51 commit f821d0a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions start_build_node_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,21 @@ if [ $# -ne 1 ]; then
exit 1
fi
export EESSI_TMPDIR=$1

# make sure that specified location has support for extended attributes,
# since that's required by CernVM-FS
command -v attr &> /dev/null
if [ $? -eq 0 ]; then
testfile=$(mktemp -p $EESSI_TMPDIR)
attr -s test -V test $testfile > /dev/null
if [ $? -ne 0 ]; then
echo "ERROR: $EESSI_TMPDIR does not support extended attributes!" >&2
exit 2
else
rm $testfile
fi
fi

echo "Using $EESSI_TMPDIR as parent for temporary directories..."

# create temporary directories
Expand Down

0 comments on commit f821d0a

Please sign in to comment.