Skip to content

Commit

Permalink
Calling df with -P to avoid line wraps with overly long mountpoints.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-baumann committed May 6, 2013
1 parent f4aadb9 commit 866ab98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/boot/9990-misc-helpers.sh
Expand Up @@ -591,7 +591,7 @@ fs_size ()
size=$(expr ${size} + ${size} / 20 ) # FIXME: 5% more to be sure
else
# free space
size="$(df -k | grep -s ${mountp} | awk '{print $4}')"
size="$(df -kP | grep -s ${mountp} | awk '{print $4}')"
fi

if [ -n "${doumount}" ]
Expand Down

0 comments on commit 866ab98

Please sign in to comment.