Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

system-extras: Commit

system/extras


Commit MetaInfo

Revision83106b5710151ad174bba64022691f10f91a5d11 (tree)
Time2011-05-16 18:13:02
AuthorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

mkuserimg.sh: set default size according to the $SRC_DIR size

Calculate the default size by $SRC_DIR size plus 10%.

Change-Id: I94a7f378b12ccdbd39367c81b1153b8654303a93

Change Summary

Incremental Difference

--- a/ext4_utils/mkuserimg.sh
+++ b/ext4_utils/mkuserimg.sh
@@ -44,7 +44,7 @@ if [ -z $MOUNT_POINT ]; then
4444 fi
4545
4646 if [ -z $SIZE ]; then
47- SIZE=128M
47+ SIZE=$((`du -sm $SRC_DIR | cut -f1`*11/10))M
4848 fi
4949
5050 MAKE_EXT4FS_CMD="make_ext4fs $ENABLE_SPARSE_IMAGE -l $SIZE -a $MOUNT_POINT $OUTPUT_FILE $SRC_DIR"
Show on old repository browser