Skip to content

Commit 49db988

Browse files
authored
Merge pull request EESSI#140 from boegel/check_extended_attribute_support
check whether location for temporary directories for build container has support for extended attributes
2 parents 98e3f51 + 90b73a0 commit 49db988

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

start_build_node_env.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,23 @@ if [ $# -ne 1 ]; then
55
exit 1
66
fi
77
export EESSI_TMPDIR=$1
8+
9+
# make sure that specified location has support for extended attributes,
10+
# since that's required by CernVM-FS
11+
command -v attr &> /dev/null
12+
if [ $? -eq 0 ]; then
13+
testfile=$(mktemp -p $EESSI_TMPDIR)
14+
attr -s test -V test $testfile > /dev/null
15+
if [ $? -ne 0 ]; then
16+
echo "ERROR: $EESSI_TMPDIR does not support extended attributes!" >&2
17+
exit 2
18+
else
19+
rm $testfile
20+
fi
21+
else
22+
echo "WARNING: 'attr' command not available, so can't check support for extended attributes..." >&2
23+
fi
24+
825
echo "Using $EESSI_TMPDIR as parent for temporary directories..."
926

1027
# create temporary directories

0 commit comments

Comments
 (0)