Skip to content

Commit

Permalink
Merge pull request #140 from boegel/check_extended_attribute_support
Browse files Browse the repository at this point in the history
check whether location for temporary directories for build container has support for extended attributes
  • Loading branch information
bedroge authored Oct 28, 2021
2 parents 98e3f51 + 90b73a0 commit 49db988
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions start_build_node_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,23 @@ 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
else
echo "WARNING: 'attr' command not available, so can't check support for extended attributes..." >&2
fi

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

# create temporary directories
Expand Down

0 comments on commit 49db988

Please sign in to comment.