From: Daniel Baumann Date: Wed, 23 Jan 2013 22:02:29 +0000 (+0100) Subject: Calling df with -P to avoid line wraps with overly long mountpoints. X-Git-Tag: debian/4.0_a5-1~6 X-Git-Url: http://git.grml.org/?p=live-boot-grml.git;a=commitdiff_plain;h=866ab983856d14da240d80dc9091ee422c59937b Calling df with -P to avoid line wraps with overly long mountpoints. --- diff --git a/scripts/boot/9990-misc-helpers.sh b/scripts/boot/9990-misc-helpers.sh index 356fe6d..987a217 100755 --- a/scripts/boot/9990-misc-helpers.sh +++ b/scripts/boot/9990-misc-helpers.sh @@ -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}" ]