Public bug reported:

Binary package hint: util-linux

The attached patch adds the ability to make a partition the maximum size
possible. This gives the equivalent functionality to omitting the size
parameter in the input, but works with -N too. So this lets you resize a
partition to maximum size by

  echo ",+," | sfdisk -N1 /dev/sda

This is non-trivial to do without the patch as -N makes the default size
the existing size. As there is (without this patch) no way of reading
the maximum size, the only option is to delete the partition and
recreate it.

This is needed for cloud-init to resize an image on first boot.

** Affects: util-linux (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: ec2-images uec-images

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/686124

Title:
  Add option to sfdisk to use maximum partition size

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to