Prevent creating 128M images

make_ext4fs will fail creating 128M ext4 images, LOL WTF? Change it to 132M to fix this issue
This commit is contained in:
topjohnwu 2017-12-22 02:39:44 +08:00
parent f6ae7e1bf1
commit e94be0b70e

View File

@ -50,6 +50,8 @@ static char *loopsetup(const char *img) {
}
int create_img(const char *img, int size) {
if (size == 128) /* WTF...? */
size = 132;
unlink(img);
LOGI("Create %s with size %dM\n", img, size);
int ret;