aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYing Wang <wangying@google.com>2010-06-16 17:11:43 -0700
committerYing Wang <wangying@google.com>2010-06-16 17:12:26 -0700
commit403e564347445a0471ef619abc206e28675b933c (patch)
treea8ee52bc5f32b9f4c05cbf91ffb655bf6c6051b4
parent212bd3e547d4720784d82900ec843b104f65e0d9 (diff)
downloadgenext2fs-403e564347445a0471ef619abc206e28675b933c.tar.gz
Fix "du" options for symbolic link dir
release tools use symbolic link as source dir, "du -sk" does not work. "du -skL" follow the sym links. Change-Id: If8fcf1bb7da850efd578b85a6fbc0c5533f90f35
-rwxr-xr-xmkuserimg.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkuserimg.sh b/mkuserimg.sh
index c0efdb8..3480a20 100755
--- a/mkuserimg.sh
+++ b/mkuserimg.sh
@@ -48,7 +48,7 @@ case $EXT_VARIANT in
*) echo "Only ext2, ext3, ext4 are supported!"; exit 6 ;;
esac
-num_blocks=`du -sk $SRC_DIR | tail -n1 | awk '{print $1;}'`
+num_blocks=`du -skL $SRC_DIR | tail -n1 | awk '{print $1;}'`
if [ $num_blocks -lt 20480 ]; then
extra_blocks=3072
else