Currently, if parted is given --script option it still asks for
confirmation during resize when the partition is mounted. Implement a
workaround to the problem by first trying the proper way and then
trying a workaround described in
https://bugs.launchpad.net/ubuntu/+source/parted/+bug/1270203
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>