setting up swap encryption from alternate CD uses unstable device nodes

Bug #584067 reported by Waleed Hamra
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Release Notes for Ubuntu
New
Undecided
Unassigned
debian-installer (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: ubiquity

i used Lucid's alternate kubuntu CD. for the first time, i wanted to setup root and swap encryption. for root, i used an encryption that of course requires a passphrase. for swap, i used a random key generated on boot time. the installer wrote an /etc/crypttab that contains this info.
for fixed partition encryptions, like my root, using UUIDs is possible, and is what the installer used.
but swap will be reformatted on each boot, hence, the UUID will change after every boot, so the installer used the device node (/dev/sdb3) to identify it in crypttab.
the catch? my devices change on each boot, sometimes it's sdb3, sometimes sda3, others sdc3.
the result? partition number 3 on another hard disk was used as swap, and got wiped out.
suggestion, the installer uses a /dev/disk/by-id in case of swap encryption.
i consider this bug VERY serious as to what results can come from it.
thank you.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: ubiquity 2.2.24
ProcVersionSignature: Ubuntu 2.6.32-22.33-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic i686
NonfreeKernelModules: nvidia
Architecture: i386
Date: Sat May 22 06:12:02 2010
EcryptfsInUse: Yes
InstallationMedia: Kubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100427)
ProcEnviron:
 LANGUAGE=
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: ubiquity

Revision history for this message
Waleed Hamra (w-hamra1987) wrote :
Revision history for this message
Waleed Hamra (w-hamra1987) wrote :

sorry, fixed the package.

affects: ubiquity (Ubuntu) → debian-installer (Ubuntu)
Tuomas Heino (iheino+ub)
Changed in debian-installer (Ubuntu):
status: New → Confirmed
Revision history for this message
Tuomas Heino (iheino+ub) wrote :

Also LP: #474258 looks alike.

Tuomas Heino (iheino+ub)
tags: added: dataloss
Revision history for this message
Tuomas Heino (iheino+ub) wrote :

Reproduced on Natty as well (with reproduction steps basically identical to the ones mentioned in LP: #710340).

tags: added: amd64 maverick natty
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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