setting up swap encryption from alternate CD uses unstable device nodes
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
ProcVersionSign
Uname: Linux 2.6.32-22-generic i686
NonfreeKernelMo
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
Changed in debian-installer (Ubuntu): | |
status: | New → Confirmed |
tags: | added: dataloss |
sorry, fixed the package.