Android-x86
Fork
Faire un don

  • R/O
  • HTTP
  • SSH
  • HTTPS

system-extras: Commit

system/extras


Commit MetaInfo

Révisionc84dfc209a1b407d2bc339fbb7ee61f00c798092 (tree)
l'heure2015-04-15 01:43:32
AuteurChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Message de Log

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

Change Summary

Modification

--- 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
Afficher sur ancien navigateur de dépôt.