From 866ab983856d14da240d80dc9091ee422c59937b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 23 Jan 2013 23:02:29 +0100 Subject: [PATCH] Calling df with -P to avoid line wraps with overly long mountpoints. --- scripts/boot/9990-misc-helpers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}" ] -- 2.1.4