diff options
author | Ying Wang <wangying@google.com> | 2010-06-16 17:11:43 -0700 |
---|---|---|
committer | Ying Wang <wangying@google.com> | 2010-06-16 17:12:26 -0700 |
commit | 403e564347445a0471ef619abc206e28675b933c (patch) | |
tree | a8ee52bc5f32b9f4c05cbf91ffb655bf6c6051b4 | |
parent | 212bd3e547d4720784d82900ec843b104f65e0d9 (diff) | |
download | genext2fs-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-x | mkuserimg.sh | 2 |
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 |