cryptdisks doesn't check whether mapped partition is a swap partition
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cryptsetup (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
Bug Description
Binary package hint: cryptsetup
I changed my partition table and cryptsetup (i.e. /etc/cryptdisks) overwrote and corrupted an ext4 filesystem/
cryptdisks should map partitions by UUID (I'll file another bug about this towards cryptsetup) and should check whether the partitions are unused swap partitions.
ProblemType: Bug
Architecture: i386
Date: Wed Jan 20 00:22:37 2010
DistroRelease: Ubuntu 10.04
EcryptfsInUse: Yes
NonfreeKernelMo
Package: cryptsetup 2:1.1.0~
ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: cryptsetup
Tags: lucid
Uname: Linux 2.6.32-10-generic i686
crypttab:
# <target name> <source device> <key file> <options>
#cryptswap1 /dev/sda5 /dev/urandom swap,cipher=
crypttab included.
Of course I commented out the entries in fstab and crypttab only after the disaster...