With the release of parted 3.3 the above listed workarounds no longer work. The work around that worked for me was something like this:
echo -e "yes\n100%" | parted /dev/mmcblk0 ---pretend-input-tty unit % resizepart 2
With the release of parted 3.3 the above listed workarounds no longer work. The work around that worked for me was something like this:
echo -e "yes\n100%" | parted /dev/mmcblk0 ---pretend- input-tty unit % resizepart 2