Skip to content

Commit

Permalink
fix if clause, make grep quiet
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Lange committed Apr 27, 2015
1 parent 29ecbfa commit c6b2417
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/fai-setup
Expand Up @@ -178,7 +178,7 @@ if [ -z "$expert" ]; then
addr=$(ip addr show dev $SERVERINTERFACE | grep -w inet | cut -d t -f 2 | cut -d ' ' -f 2 | head -1)

# if not NFS v4 entry is found add a dummy entry. Workaround for #676883
if egrep -v ^# /etc/exports | grep fsid=0; then
if ! egrep -v ^# /etc/exports | grep -q fsid=0; then
echo "No entry for NFS v4 found. Adding a dummy entry. This forces NFS v3 for the nfsroot."
mkdir -p /srv/nfs4
add_export_line "/srv/nfs4 $addr(fsid=0,async,ro,no_subtree_check)"
Expand Down

0 comments on commit c6b2417

Please sign in to comment.