[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#781289: swap on encrypted volume not mounted



Control: tags -1 unreproducible

On Fri, Mar 27, 2015 at 12:20:32AM +0100, Kevin Price wrote:
> Package: debian-installer
> Version: 20150324
> 
> When using a current jessie installer cd-image to set up a LUKS (random
> key) encrypted partition for swap, it will not mount. It does show up in
> /etc/fstab correctly, but the DM device is not automatically created at
> boot time.

Hello,

I have tried to reproduce your problem, but have not been able to
do so.  I have used the follwing installer image:

http://ftp.nl.debian.org/debian/dists/testing/main/installer-amd64/20150324/images/netboot/mini.iso

and have run an installation in a VM with the following partition
layout:

Device     Boot    Start      End  Sectors  Size Id Type
/dev/sda1  *        2048   976895   974848  476M 83 Linux
/dev/sda2         978942 16775167 15796226  7,5G  5 Extended
/dev/sda5         978944 14649343 13670400  6,5G 83 Linux
/dev/sda6       14651392 16775167  2123776    1G 83 Linux

sda1 is the /boot partition
sda5 is a LUKS volume with passphrase, used as root filesystem
sda6 is a LUKS volume with random key, used as swap partition

This results in:

root@debian:~# cat /etc/crypttab 
sda5_crypt UUID=16357360-c97c-4b6b-89bc-3bdebe8f4406 none luks
sda6_crypt /dev/sda6 /dev/urandom cipher=aes-xts-plain64,size=256,swap

root@debian:~# ls -l /dev/mapper
insgesamt 0
crw------- 1 root root 10, 236 Mär 27 15:21 control
lrwxrwxrwx 1 root root       7 Mär 27 15:21 sda5_crypt -> ../dm-0
lrwxrwxrwx 1 root root       7 Mär 27 15:21 sda6_crypt -> ../dm-1

root@debian:~# grep swap /etc/fstab 
/dev/mapper/sda6_crypt none            swap    sw              0       0

root@debian:~# free
             total       used       free     shared    buffers     cached
Mem:       4057012     110800    3946212       8564       8672      48812
-/+ buffers/cache:      53316    4003696
Swap:      1061884          0    1061884

--> everything works as expected.

Could you provide further information that would enable us to
reproduce the problem?  In particular the install-time logfiles
(available under /var/log/installer) and the contents of
/etc/fstab and /etc/crypttab as well as the output of "ls -l
/dev/mapper" and "fdisk -l" on the installed system would be
helpful.

Could you also provide the exact URL of the installer image that
you have used?

Regards,
Karsten
-- 
Gem. Par. 28 Abs. 4 Bundesdatenschutzgesetz widerspreche ich der Nutzung
sowie der Weitergabe meiner personenbezogenen Daten für Zwecke der
Werbung sowie der Markt- oder Meinungsforschung.


Reply to: