[Bug 686124] Re: Add option to sfdisk to use maximum partition size

Scott Moser smoser at canonical.com
Wed Jan 5 02:09:30 UTC 2011


This is ready to go.  I have a feature I'd like to get in that is much
more easily done with it.  Please review and pull.

** Changed in: util-linux (Ubuntu)
   Importance: Undecided => Medium

** Changed in: util-linux (Ubuntu)
       Status: New => Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is a direct subscriber.
https://bugs.launchpad.net/bugs/686124

Title:
  Add option to sfdisk to use maximum partition size

Status in “util-linux” package in Ubuntu:
  Triaged

Bug description:
  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.





More information about the Ubuntu-sponsors mailing list