Currently the only way to have parted resize a busy partition is to use interactive mode rather than script mode and say yes at the prompt.
Currently the only way to have parted resize a busy partition is to use interactive mode rather than script mode and say yes at the prompt.