When specifying the --exclude-gmusic flag the size of the music directory is not subtracted from the calculated /data partition size. The required space calculation is over-estimated, which can cause an unnecessary exit with the E_NOSPACE error.
The data partition size check should do something similar to how it handles $data_mount/media, such as:
if $bb [ "$exclude_gmusic" == "yes" ]; then
u_datagmusic=`$bb du -sm $data_mount/data/com.google.android.music/files/* | tail -n 1 | $bb awk '{print $1}'`
u_data=`$bb expr $u_data - $u_datagmusic`
fi
When specifying the --exclude-gmusic flag the size of the music directory is not subtracted from the calculated /data partition size. The required space calculation is over-estimated, which can cause an unnecessary exit with the E_NOSPACE error.
The data partition size check should do something similar to how it handles $data_mount/media, such as: