Installation creates a new swap partition
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
partman-auto (Ubuntu) |
Triaged
|
Medium
|
Unassigned | ||
Oneiric |
Triaged
|
Medium
|
Unassigned | ||
Precise |
Triaged
|
Medium
|
Unassigned | ||
partman-auto-crypto (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
Oneiric |
Confirmed
|
Undecided
|
Unassigned | ||
Precise |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I installed Ubuntu 11.04 a few days ago. Then, yesterday I reinstalled the same version (11.04). In the installer window, I chose the option to automatically delete the old version and reinstall. Today, I had to reinstall the same version (11.04) again, and just like yesterday, I chose the option of AUTOMATICALLY DELETING existing version and reinstalling 11.04.
Just a few hours ago, however, I noticed in Gparted that I have three (3) swap partitions. The option in the installer to automatically delete existing version and install the new version apparently deletes only the ext4 partition, and then uses that freed space to create an ext4 partition (smaller than the original) & a swap partition. It ignores the fact that a swap partition already exists.
Expected Results:
The installer option "delete current version and install this version" should not create a new swap partition if the previous Ubuntu installation alredy had a swap partition. The option should act just as expected. It should keep the partition configuration exactly the same. The ext4 partiiton should have the same exact size as the ext4 parition in the previous installation; and the swap partiiton (if any) from the previous installation should remain unchanged and be used as the swap partition for the new installation.
A new swap partition should be created if and only if the previous installation did not have a swap partition.
affects: | ubuntu → partman-auto (Ubuntu) |
Changed in partman-auto (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in partman-auto (Ubuntu): | |
status: | Confirmed → Triaged |
tags: | added: oneiric |
Changed in partman-auto (Ubuntu Precise): | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in partman-auto (Ubuntu Oneiric): | |
assignee: | nobody → Damian Manig (ossimania) |
assignee: | Damian Manig (ossimania) → nobody |
This also occurs with the 'Guided - resize' installation option. I installed once with the 'entire disk' option, which creates an extended partition containing the swap partition. The following install resizes the ext4 primary partition, then creates a new ext4 logical partition in the extended partition (makes sense so far), but then also adds another swap partition into the extended partition (leaving two logical swap partitions). Screen shot of partition layout attached.
Each system only uses one swap partition. They should probably share a single swap partition, because it's contents are only persistent during a hibernate, and it's not possible to leave one OS hibernated and boot into another OS.
This is with the oneiric dev branch (ubuntu- alternate- amd64.iso from 2011-07-05)