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 <mail@daniel-baumann.ch>
Mon, 6 May 2013 11:54:14 +0000 (13:54 +0200)
scripts/boot/9990-misc-helpers.sh

index 356fe6d..987a217 100755 (executable)
@@ -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}" ]