Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

system-extras: Commit

system/extras


Commit MetaInfo

Revisionc84dfc209a1b407d2bc339fbb7ee61f00c798092 (tree)
Time2015-04-15 01:43:32
AuthorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

mkuserimg.sh: ensure the extra size is larger than 80MB

Change Summary

Incremental Difference

--- a/ext4_utils/mkuserimg.sh
+++ b/ext4_utils/mkuserimg.sh
@@ -48,7 +48,10 @@ if [ -z $SIZE ]; then
4848 echo "Need size of filesystem"
4949 exit 2
5050 elif [ 0 -eq 0$SIZE ]; then
51- SIZE=$((`du -sm $SRC_DIR | cut -f1`*11/10))M
51+ s=$(du -sm $SRC_DIR | cut -f1)
52+ e=$(($s / 10))
53+ [ $e -lt 80 ] && e=80
54+ SIZE=$(($s + $e))M
5255 fi
5356
5457 if [ -n "$FC" ]; then
Show on old repository browser