Commit e94be0b7 authored by topjohnwu's avatar topjohnwu

Prevent creating 128M images

make_ext4fs will fail creating 128M ext4 images, LOL WTF? Change it to 132M to fix this issue
parent f6ae7e1b
...@@ -50,6 +50,8 @@ static char *loopsetup(const char *img) { ...@@ -50,6 +50,8 @@ static char *loopsetup(const char *img) {
} }
int create_img(const char *img, int size) { int create_img(const char *img, int size) {
if (size == 128) /* WTF...? */
size = 132;
unlink(img); unlink(img);
LOGI("Create %s with size %dM\n", img, size); LOGI("Create %s with size %dM\n", img, size);
int ret; int ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment