Just want to share my experience...
I tried this but modified script to get my own partition size:
840mb system
3mb system1
430 cache
8gb userdata
everything worked great! but I forgot to reboot into recovery before flashing anything... so I got stuck at MI logo.
I solved this problem by...