My workaround is:
parted --script /dev/mmcblk0 unit % resizepart 2 100% || parted
/dev/mmcblk0 unit % resizepart 2 Yes 100%
This tries tries the "correct" version first and if it fails (because
the partition is mounted) then uses the workaround.
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
no way to use resizepart non-interactively on busy partition
To manage notifications about this bug go to:
ubuntu-bugs mailing list