[Bug 1212492] Re: cc_growpart broken if parted resizefs found

Scott Moser smoser at ubuntu.com
Fri Jan 17 15:33:15 UTC 2014


Ok.
  I'm not even sure if resizepart can be made to work, at all.


$ parted --help | grep resizepart
  resizepart NUMBER END                    resize partition NUMBER

the END seems to be in MB, which is insufficient for my needs.  I'd like it to grow it to the next partition.
There isn't a way to just say "make it as big as possible".

The undocumented flag for --script is '---pretend-input-tty', but I
can't even seem to make that work.

It just seems to ignore things like this:

$ echo "Yes" | sudo parted ---pretend-input-tty /dev/vdb resizepart  1 1000 --machine --script 
Warning: Shrinking a partition can cause data loss, are you sure you want to continue?
$ echo $?
0

but it doesn't shrink the partition table

I'm going to remove the support for parted from cloud-init entirely.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1212492

Title:
  cc_growpart broken if parted resizefs found

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1212492/+subscriptions



More information about the Ubuntu-server-bugs mailing list