]> Zhao Yanbai Git Server - minix.git/commitdiff
release.sh: call df(1) with -k
authorDavid van Moolenbroek <david@minix3.org>
Tue, 16 Oct 2012 17:34:18 +0000 (19:34 +0200)
committerDavid van Moolenbroek <david@minix3.org>
Wed, 17 Oct 2012 20:54:36 +0000 (22:54 +0200)
releasetools/release.sh

index 8a7931cccc688007b108373d8536a8b1bd5ef9b1..cbe1fcbb26781979613314cb613b593719a72cd4 100755 (executable)
@@ -358,7 +358,7 @@ mount $TMPDISKUSR $RELEASEMNTDIR/usr || exit
 
 echo " * Copying files from staging to image"
 synctree -f $RELEASEDIR $RELEASEMNTDIR > /dev/null || true
-expr `df $TMPDISKUSR | tail -1 | awk '{ print $4 }'` - $extrakb >$RELEASEMNTDIR/.usrkb
+expr `df -k $TMPDISKUSR | tail -1 | awk '{ print $4 }'` - $extrakb >$RELEASEMNTDIR/.usrkb
 
 echo " * Unmounting $TMPDISKUSR from $RELEASEMNTDIR/usr"
 umount $TMPDISKUSR || exit