Encrypted swap does not work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cryptsetup (Ubuntu) |
Expired
|
High
|
Unassigned | ||
systemd (Ubuntu) |
Expired
|
High
|
Unassigned | ||
ubiquity (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
On a working system, i've added a new hdd, and decided to use it as the main device storage.
So after doing the formatage (classic: / as ext4, swap, /home as ext4), i've set a bionic iso installation.
Ubiquity then have proposed to set an encrypted swap dir, which i have accepted, and then smootly terminated the installation.
Booting with that new install, i hit a cryptswap1 timeout after beeing frozen around 1 minute.
oem@ubuntu:~$ journalctl | grep cryptswap
systemd[1]: Starting Cryptography Setup for cryptswap2...
systemd[1]: Started Cryptography Setup for cryptswap2.
systemd[1]: Found device /dev/mapper/
systemd[1]: Activating swap /dev/mapper/
kernel: Adding 10584572k swap on /dev/mapper/
systemd[1]: Activated swap /dev/mapper/
systemd[1]: Starting Cryptography Setup for cryptswap1...
systemd[1]: Started Cryptography Setup for cryptswap1.
oem@ubuntu:~$ journalctl | grep timeout
systemd[1]: dev-disk-
Note: cryptswap2 refer to the new hdd's swap partition, cryptswap1 refer to the old hdd's swap partition.
/etc/fstab have been tested with only the active (mounted) disk, and with both. In both cases the timeout happens.
oem@ubuntu:~$ swapon -s
Filename Type Size Used Priority
/dev/dm-0 partition 10584572 221184 -1
Conclusion:
-ubiquity is proposing a non working feature (at least with multiple storage devices/swap partitions
- the cryptsetup version is not well supporting the kernel/systemd settings/configs
As Debian has more recent versions: 1.7.5-1 (sid) and 2.0.0 (experimental) with some new features and cleanups, it should be a positive test to replace the actual not working version with one of these.
http://
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: cryptsetup 2:1.7.3-4ubuntu1
ProcVersionSign
Uname: Linux 4.13.0-18-generic x86_64
ApportVersion: 2.20.8-0ubuntu2
Architecture: amd64
CurrentDesktop: GNOME
Date: Mon Dec 4 07:26:17 2017
EcryptfsInUse: Yes
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: cryptsetup
UpgradeStatus: No upgrade log present (probably fresh install)
cmdline: BOOT_IMAGE=
tags: | added: upgrade-software-version |
tags: | added: rls-bb-incoming |
Changed in cryptsetup (Ubuntu Bionic): | |
importance: | Undecided → High |
Changed in systemd (Ubuntu Bionic): | |
importance: | Undecided → High |
tags: | removed: rls-bb-incoming |
tags: | added: id-5ab94d352fa6a78baa2fab1e |
Bionic now have the 1.7.5 version which act better. Log now suggest rather a race issue as swap is well set, but later.