partman fails to swapoff all swap partitions on the target device

Bug #218394 reported by Evan on 2008-04-16
12
Affects Status Importance Assigned to Milestone
partman-base (Ubuntu)
High
Evan
Hardy
High
Evan

Bug Description

Binary package hint: partman-base

In partman-base.ubuntu r84, disable_swap was changed to only swapoff partitions on a device that is going to be modified. However, it only iterates over the list of partitions that will exist when partitioning has completed.

To reproduce, install Ubuntu once, then install again, electing to resize the disk. Finally, try to install a third time using the entire disk. While partman will swapoff one of the partitions, it will miss the other and the kernel will be unable to re-read the partition table.

Attached is a basic patch to fix the bug.

Related branches

Evan (ev) wrote :
Colin Watson (cjwatson) on 2008-04-17
Changed in partman-base:
assignee: nobody → evand
status: New → Confirmed
importance: Undecided → High
milestone: none → ubuntu-8.04
Evan (ev) on 2008-04-17
Changed in partman-base:
status: Confirmed → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package partman-base - 114ubuntu5

---------------
partman-base (114ubuntu5) hardy; urgency=low

  * Disable swap on all the swap partitions for the device being
    changed, rather than just the ones that will exist after
    partitioning (LP: #218394).

 -- Evan Dandrea <email address hidden> Wed, 16 Apr 2008 22:37:00 -0400

Changed in partman-base:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers