partman fails to swapoff all swap partitions on the target device

Bug #218394 reported by Evan
12
Affects Status Importance Assigned to Milestone
partman-base (Ubuntu)
Fix Released
High
Evan
Hardy
Fix Released
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.

Tags: iso-testing

Related branches

Revision history for this message
Evan (ev) wrote :
Colin Watson (cjwatson)
Changed in partman-base:
assignee: nobody → evand
status: New → Confirmed
importance: Undecided → High
milestone: none → ubuntu-8.04
Evan (ev)
Changed in partman-base:
status: Confirmed → Fix Committed
Revision history for this message
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  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.