boot hangs with more than 1 luks device in crypttab
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cryptsetup (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
When /etc/crypttab has more than one luks device, the boot process locks up (hangs) after the decryption of the first luks device. A password prompt for the second luks device never appears.
Affected:
Ubuntu 15.04 (vivid)
Ubuntu 15.10 (wily)
Works fine in:
Ubuntu 14.10 (utopic)
When upgrading utopic to vivid in the affected configuration, the bug is triggered as well (first boot into vivid).
Testcase:
- install (text mode) from ubuntu-
- manually partition the disk (see attached installer-
-> sda1: 512mb ext2 for /boot/ (unencrypted)
-> sda2: 4GB encrypted (luks) -> sda2_crypt
-> sda3: 2GB encrypted (luks) -> sda3_crypt
-> sda2_crypt: ext4 for /
-> sda3_crypt: ext4 for /tmp
boot will hang (boot-hang.png) after decrypting sda2.
My real use-case is to encrypt multiple physical hard drivers, which fails exactly the same way (the test config doesn't make much sense, but its simple to reproduce).
Commenting sda3_crypt in /etc/fstab and adding a the option nofail to sda3_crypt in /etc/crypttab makes the OS boot.
# cat /etc/crypttab
sda2_crypt UUID=b41558ee-
sda3_crypt UUID=c1c660d3-
# cat /etc/fstab
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/mapper/
# /boot was on /dev/sda1 during installation
UUID=56e38284-
#/dev/mapper/
# blkid
/dev/mapper/
/dev/sda1: UUID="56e38284-
/dev/sda2: UUID="b41558ee-
/dev/sda3: UUID="c1c660d3-
Status changed to 'Confirmed' because the bug affects multiple users.