Calling df with -P to avoid line wraps with overly long mountpoints.
authorDaniel Baumann <daniel@debian.org>
Wed, 23 Jan 2013 22:02:29 +0000 (23:02 +0100)
committerDaniel Baumann <daniel@debian.org>
Wed, 23 Jan 2013 22:02:29 +0000 (23:02 +0100)
scripts/boot/9990-misc-helpers.sh

index 71ba7e1..807d787 100755 (executable)
@@ -600,7 +600,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}" ]