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

Launchpad Bug Tracker 686124 at bugs.launchpad.net
Wed Jan 5 14:30:43 UTC 2011


This bug was fixed in the package util-linux - 2.17.2-3.3ubuntu2

---------------
util-linux (2.17.2-3.3ubuntu2) natty; urgency=low

  * sfdisk: pull upstream support for '+' to specify maximum size for a
    partition when using -N. (LP: #686124)
  * remaining changes:
    - Since udev is required in Ubuntu, the hwclock.sh init script is
      not called on startup and the hwclockfirst.sh init script is
      removed.
    - Use wildcards for symbols file, since they use versioned symbols
      properly.
    - Remove /etc/adjtime on upgrade if it was not used.
    - Install custom blkid.conf to use /dev/.blkid.tab since we don't
      expect device names to survive a reboot
    - No lsb_release call in mount.preinst since we'd need Pre-Depends
      (LP: #383697).
    - Do not install initramfs hook, since our initramfs already handles
      including blkid.
    - Mention mountall(8) in fstab(5) manpages, along with its special
      options.
    - For the case where mount is called with a directory to mount, look
      that directory up in mountall's /lib/init/fstab if we couldn't find
      it mentioned anywhere else.  This means "mount /proc", "mount /sys",
      etc. work.
    - sfdisk support for '+' with '-N' (LP: #686124)
 -- Scott Moser <smoser at ubuntu.com>   Tue, 04 Jan 2011 20:56:59 -0500

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

-- 
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:
  Fix Released

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